有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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

我想知道在jmh测试的分数结果中出现误差幅度的可能原因是什么。在一天结束时,它是在多次迭代中执行的相同代码


共 (1) 个答案

  1. # 1 楼答案

    好吧,上钩并假设这不是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."