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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -