Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254782

Fix benchmark issues in java/lang/StringIndexOfChar.java benchmark

XMLWordPrintable

    • b23

      JDK-8173585 introduced a new benchmark, but it has a few benchmark issues:

       *) Inputs should not be in "static final" to avoid constant folding
       *) Outputs ("ret" values) should be at least returned from @Benchmark method

      There might be more issues, please look through the JMH Samples first, and then rewrite.

            phh Paul Hohensee
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: