JMH: What does the score value mean?
Asked Answered
M

1

36

I don't understand the score attribute from the JMH results? I don't find anything on the web about it, too.

Can anyone tell me, what it is about? As far as I understand is a higher score better than a lower, but what does it exactly mean and how is it calculated?

Meddlesome answered 24/7, 2014 at 8:38 Comment(0)
C
28

JMH supports the following Benchmark modes:

  • Throughput: operations per unit of time
  • AverageTime: average time per operation
  • SampleTime: samples the time for each operation
  • SingleShotTime: measures the time for a single operation

Now you can analyse if higher score is better or not.

The default benchmark mode is (Throughput) 1 and in this case higher value is better.

If you are interested how exactly each benchmark result is calculated check here.

Criterion answered 24/7, 2014 at 17:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.