该 DEMO 工程演示 JMH(Java MicroBenchmark Harness) 框架的基本用法。 工程将演示遍历一个 Map 时,使用 KeySet 和 EntrySet 的性能对比。 参考 http://tutorials.jenkov.com/java-performance/jmh.html https://www.xncoding.com/2018/01/07/java/jmh.html