how to regular expression match benchmark's name if the name has "$" in it

Bo Zhang bo.zh.zhang at oracle.com
Mon Mar 6 20:12:22 UTC 2017


Hi there,

I am using JMH to run benchmarks. I accidentally find a benchmark 
method, whose name is "findAllIn$chars$100$1k".

In this case, how can I use regex to match this name in my "java -jar 
./test/benchmark.jar  <regex match>" command?

Thanks,
Bo


More information about the jmh-dev mailing list