Using JMH to test virtual thread performance
Alan Bateman
Alan.Bateman at oracle.com
Tue Feb 8 12:02:19 UTC 2022
On 08/02/2022 00:22, Firouz Bharthania wrote:
> Hello,
>
> Can JMH (Java Microbenchmarking Harness) be used for measuring virtual threads at this time, because I get high, unacceptable error margins when I run tests?
>
Aleksey may have some advice but I would expect it should be possible to
create a runner that invokes org.openjdk.jmh.Main.main in the context of
a virtual thread. I don't know if anyone has done that.
-Alan
More information about the loom-dev
mailing list