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

标签 java jmh

我想知道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/

相关文章:

java - 如何在任何在线服务器上部署 Spring 框架后端和 Angular 2 前端应用程序?

java - JMH:以 json 对象的形式返回基准测试结果

java - JMH 的简单微基准测试

java - JMH基准测试中的参数列表

java - 如何知道从另一个android应用程序可读的可能参数

java - 在 Java 中 SwingWorker 完成后启动另一个线程

java - 当使用组合而不是继承时,Comparator<T> 的替代方案是什么?

java - 如何显示全息主题的 Activity 圈?

java - 为什么 nio.files.copy 比 nio.fileChannel 复制慢很多?

java - MySQL JDBC 查询比 JMH 测试中应有的速度快得多