我想知道jmh测试的分数结果有误差的可能原因是什么。归根结底,它是执行多次迭代的相同代码。
最佳答案
好吧,假设这不是 4 月 1 日的恶作剧。你可以从这里开始:
- http://en.wikipedia.org/wiki/Observational_error
- http://en.wikipedia.org/wiki/Measurement_uncertainty
"No measurement is exact. When a quantity is measured, the outcome depends on the measuring system, the measurement procedure, the skill of the operator, the environment, and other effects.[1] Even if the quantity were to be measured several times, in the same way and in the same circumstances, a different measured value would in general be obtained each time, assuming the measuring system has sufficient resolution to distinguish between the values."
关于java - 是什么导致了 jmh 测量的错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29385335/