This directory, ubenchmark
, contains micro-benchmarks written using the jmh framework.
The benchmarks are tools for development and are not distributed as Calcite artifacts. (Besides, jmh's license does not allow that.)
To run all benchmarks:
cd calcite ./gradlew :ubenchmark:jmh
To run just one benchmark, modify ubenchmark/build.gradle.kts
and add the following task:
jmh { include = listOf("removeAllVertices.*Benchmark") }
and run
./gradlew :ubenchmark:jmh
as before. In this case, removeAllVertices.*Benchmark
is a regular expression that matches a few methods -- benchmarks -- in class DefaultDirectedGraphBenchmark
.
The jmd-gradle-plugin
has many other options but you will need to translate them from Groovy syntax to our Kotlin syntax.
When you have run the benchmarks, please record them in the relevant JIRA case and link them here: