Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7904059

Enable alternative Runner instantiation and Main reuse

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • 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

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

              Created:
              Updated: