是什么导致了 jmh 测量的错误?
what causes the error in the jmh measurements?
我想知道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."
我想知道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."