Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.27 KB

File metadata and controls

39 lines (23 loc) · 1.27 KB

Benchmarks

Microbenchmarks are written using JMH. They can be executed by using the jmhJar.

First, build the jar:

$ ./gradlew :benchmarks:jmhJar

Then, run the benchmarks:

$ java -jar benchmarks/build/libs/crate-benchmarks-all.jar

This will execute all benchmarks which are in benchmarks/src/test/java.

If you want to execute specific benchmarks you can provide a filter argument:

$ java -jar benchmarks/build/libs/crate-benchmarks-all.jar <benchmarkMethodName | benchmarkClassName[.methodName]>

To save the results to a file, use the -rf and -rff options:

$ java -jar benchmarks/build/libs/crate-benchmarks-all.jar -rf json -rff benchmarks/build/jmh.json

If you are writing new benchmarks, take a look at this JMH introduction and these JMH samples.

End-to-end Benchmarks

Version-independent benchmarks which can be written using regular SQL statements are in the crate-benchmarks repository.