Driving a JMH benchmark with Java code running as GraalVM native image requires a custom Runner instance, but the JMH main class can be mostly used as is. In fact, command line argument validation in the JMH main class is applicable to native image JMH benchmarks too.
The proposed change here is to modify JMH's main class to make it easy to extend and override the instantiation of the Runner class.
The benefits of this change can be observed here: https://github.com/galderz/fibula/commit/11bb06a3e30cfae61fb6d9319ee9cac1bf16d2d3
The proposed change here is to modify JMH's main class to make it easy to extend and override the instantiation of the Runner class.
The benefits of this change can be observed here: https://github.com/galderz/fibula/commit/11bb06a3e30cfae61fb6d9319ee9cac1bf16d2d3
- links to
-
Review(master) openjdk/jmh/161