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

JMH: SingleShot mode should handle OperationsPerInvocations > 1

XMLWordPrintable

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

      There seems to be a corner case in SingleShot mode handling: while the internal code handles OperationsPerInvocations > 1 for e.g. profilers normalization with BenchmarkTaskResult, OPI > 1 does not affect the score.

      Unfortunately, the fix involves modifying a constructor in SingleShotResult, which raises a minor compatibility question. We can side-step it for a while by adding the constructor overload.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: