OpenJDK JMH有时会在结果中打印(* interrupt *).这到底是什么意思? [英] OpenJDK JMH sometimes prints (*interrupt*) in results. What does this exactly mean?

查看:73
本文介绍了OpenJDK JMH有时会在结果中打印(* interrupt *).这到底是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用OpenJDK JMH 0.9.3,有时我在下面得到这样的结果日志文件.(*中断*)在这里是什么意思?

I use OpenJDK JMH 0.9.3 and sometimes i get a result log file like this one below. What means (*interrupt*) here?


Forking 1 times using command: [/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/...]
# Run progress: 53,85% complete, ETA 00:01:26
# Fork: 1 of 1
# Warmup Iteration   1: 19950765,000 us/op
# Warmup Iteration   2: (*interrupt*) (*interrupt*) (*interrupt*) 18107134,000 us/op
# Warmup Iteration   3: (*interrupt*) 14439157,500 us/op
Iteration   1: 13571806,000 us/op
Iteration   2: 7484946,500 us/op
Iteration   3: (*interrupt*) 12386565,000 us/op
Iteration   4: (*interrupt*) 7245477,500 us/op
Iteration   5: (*interrupt*) 9047236,000 us/op


Result: 9947206,200 ±(99.9%) 11103651,130 us/op [Average]
  Statistics: (min, avg, max) = (7245477,500, 9947206,200, 13571806,000), stdev = 2883582,937
  Confidence interval (99.9%): [-1156444,930, 21050857,330]

推荐答案

这意味着您的工作量被JMH中断了,很可能是因为它超出了迭代时间.它会打印( interrupt )",让您知道该分数是在JMH的积极干预下获得的,可能不可靠.

That means your workload was interrupted by JMH, quite possibly because it overrun the iteration time. It prints "(interrupt)" to let you know the score was obtained with active intervention of JMH, and may be unreliable.

您可以使用 @Timeout(time = 1,timeUnit = TimeUnit.HOURS)注释基准,它会花费更长的时间.默认情况下,当您运行某些批量测量(未设置时间限制)时,它将默认为10分钟的时间限制.

You can annotate your benchmark with @Timeout(time = 1, timeUnit = TimeUnit.HOURS) annotation and it will know that it will take longer. By default when you run some batch Measurement (without time limit set), it will default to 10 minutes time limit.

这篇关于OpenJDK JMH有时会在结果中打印(* interrupt *).这到底是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆