Parametrise @Threads

Joel Moberg joel.moberg at gmail.com
Fri Apr 29 16:35:37 UTC 2016


I googled the list to find a way to parametrise the number of threads used
for a benchmark. This question was asked before here:
http://mail.openjdk.java.net/pipermail/jmh-dev/2014-October/001423.html.
There is a link to a issue describing that @Threads could accept
parameters. The suggestion is to either let some annotations accept a
sequence, or let users be able parametrize with @Params annotation. I think
the first suggestion is better, and maybe easier to implement (if
annotations can extend a base annotation?). I have not written any
annotation code yet. But I want this feature, and want to know if there
still is interest. Is there any way I can help?


More information about the jmh-dev mailing list