gpt4 book ai didi

java - 是什么导致了 jmh 测量的错误?

转载 作者:搜寻专家 更新时间:2023-11-01 02:07:13 26 4
gpt4 key购买 nike

我想知道jmh测试的分数结果有误差的可能原因是什么。归根结底,它是执行多次迭代的相同代码。

最佳答案

好吧,假设这不是 4 月 1 日的恶作剧。你可以从这里开始:

"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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com