Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6470

Run specific JMH benchmarks without modifying sources

    XMLWordPrintableJSON

Details

    Description

      Currently we can run all JMH benchmarks of the project using the "jmh" Gradle task.

      ./gradlew :ubenchmark:jmh
      

      In many cases, we don't want to run all benchmarks but only one (or few) and this is not possible without modifying the Gradle build files (see https://github.com/melix/jmh-gradle-plugin/issues/152).

      The goal of this ticket is to add a (project) property (i.e., jmh.includes) to select the desired benchmarks via a regular expression that can be passed in the command line.

      ./gradlew :ubenchmark:jmh -Pjmh.includes=ParserBenchmark
      

      For example, the command above would run only the ParserBenchmark.

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: