JMH question about thrpt/avgt with thread

kim jeonggi laststem at gmail.com
Sat Apr 16 21:17:25 UTC 2022


Hello!

I have a question about JMH thrpt, avgt with threads.

I did set thread 5 parameters on benchmark.

like this.

Options opts = new OptionsBuilder()
    ...
    .thread(5)

but I don't know how the values of Thrpt and Avgt are related.

MyTest.test                           10   thrpt        636.519
ops/s
MyTest.test                           10   avgt            0.009
 s/op

I've calculated it like this, but the numbers don't match each other.

0.009 s/op -> convert ops/s (1 / 0.009) -> 111.111 ops/s
or
636.519 ops -> convert s/op (1 / 636.519) -> 0.0015... ops/s

I'd appreciate it if you could let me know what I'm doing wrong.

Thank you.


More information about the jmh-dev mailing list