Enable alternative Runner instantiation and Main reuse

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None
    • jmh

      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

            Assignee:
            Galder ZamarreƱo
            Reporter:
            Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: