jmh avoid test?
Bernd Eckenfels
ecki at zusammenkunft.net
Fri Sep 7 10:34:24 UTC 2018
Hello,
If you specify the parameters on the command line the JMH run will only use the specified values.
-p param1=10,20
If you want to restrict parameter combinations you would most likely have to start multiple runs.
Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: -993459040m Auftrag von
Gesendet: Freitag, September 7, 2018 12:24 PM
An: jmh-dev at openjdk.java.net
Betreff: jmh avoid test?
Hello,
jmh has the @Param but there doesn’t seem to be a way to restrict a benchmark to only certain param values.
The simplest case would be to do a test in the benchmark method, and throw an UnsupportedStateException, but when you do that all of the rests of the tests abort…
Maybe another annotation like, @Valid(argname=“list…”) so that jmh can know which tests should be run ?
Doesn’t seem to be an easy way to file an issue with OpenJDK on this.
Regards.
More information about the jmh-dev
mailing list