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

Enable BenchmarkParams construction to be overriden

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • jmh

      To support execution of JMH benchmarks via GraalVM native image binaries, BenchmarkParams contructions needs to be tailored in order to take advantage of JMH's benchmark execution plumbing.

      For native images, BenchmarkParams values for jvm, jvmArgs, jdkVersion, vmName and vmVersion fields need to be adjusted.

      JMH can enable this by converting `Runner.newBenchmarkParams(BenchmarkListEntry, ActionMode)` method from private to protected. Making this change requires `ActionMode` to be made public instead of package private.

      The benefits of this change brings to the native image JMH use case can be seen here: https://github.com/galderz/fibula/commit/8fd8cf3f4eb1c6f37de7f807bfc697ef981a3e05#diff-601b6d98eff18db8a804efb415d515c3d397d42b9c982713b72c37bea2ebbf18

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

              Created:
              Updated: