Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMH: What does the score value mean?

Tags:

jmh

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?

like image 751
markusw Avatar asked Aug 31 '25 15:08

markusw


1 Answers

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.

like image 152
Artur Mkrtchyan Avatar answered Sep 13 '25 08:09

Artur Mkrtchyan