jmh中的operation是什么意思?

What does operation mean in jmh?

在jmh的结果中,得分在ns/op,每次操作花费的时间以纳秒为单位,操作是否参考基准调用? 如果是这样的话,分数越低就意味着调用越快?

是的,这是执行基准方法所花费的时间:数字越小,速度越快。 different modes 的 javadoc 中也对此进行了解释 - 查看 AverageTime:

Runs by continuously calling Benchmark methods, counting the average time to call over all worker threads. [...]

请注意,还有其他模式,例如吞吐量,它为您提供每个时间单位的调用次数 - 在该模式下,次数越大,方法越快。