JMH question about thrpt/avgt with thread

Bernd Eckenfels ecki at zusammenkunft.net
Sun Apr 17 09:00:20 UTC 2022


Hello,

The op/s is overall (times 5 threads)

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: jmh-dev <jmh-dev-retn at openjdk.java.net> im Auftrag von kim jeonggi <laststem at gmail.com>
Gesendet: Saturday, April 16, 2022 11:17:25 PM
An: jmh-dev at openjdk.java.net <jmh-dev at openjdk.java.net>
Betreff: JMH question about thrpt/avgt with thread

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