jmh avoid test?

robert engels rengels at ix.netcom.com
Thu Sep 6 16:57:41 UTC 2018


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