Run specific JMH benchmarks from jar
This is the exact command:
java -Xmx4G -jar benchmarks.jar YourClass -f 1 -wi 3 -i 10
When in doubt, ask for command line help. In fact, running the JAR with -h
yields:
Usage: java -jar ... [regexp*] [options]
[opt] means optional argument.
<opt> means required argument.
"+" means comma-separated list of values.
"time" arguments accept time suffixes, like "100ms".
[arguments] Benchmarks to run (regexp+).
So, supplying a regular expression as the filter helps.