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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: