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

JMH: Improve -prof perfnorm accuracy with robust estimations

XMLWordPrintable

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

      If we measure the mostly-idle workload, like the sleep-wait:
        while (target > System.nanoTime()) Thread.sleep(1000);

      ...then the `-prof perfnorm` measurement would mostly contain the iteration prologs/epilogs, which take orders of magnitude more cycles than the sleep itself. This can be alleviated by using a more robust estimator in perfnorm. The estimator can filter out the "outliers" caused by infrastructural overhead.

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

              Created:
              Updated:
              Resolved: