java - Run specific JMH benchmarks from jar -


i have several heavy benchmark classes annotated @benchmark. after bulding jar benchmarks can run of them following command

java -xmx4g -jar benchmarks.jar -f 1 -wi 3 -i 10 

how specify benchmarks run, if don't want run of them?

when in doubt, ask command line help. in fact, running jar -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, "100ms".    [arguments]                 benchmarks run (regexp+).  

so, supplying regular expression filter helps.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -