Thread number aware benchmarks and groups
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Nov 18 03:24:38 PST 2013
On 11/18/2013 03:20 PM, Nitsan Wakart wrote:
> Thanks Aleksey/Dmitry for your responses. I'll have a go at this
> later this week, I was hoping for a dynamic solution so that I can
> drop the same microbenchmarks jar into different environments and
> have the workload defined from the command line. It's not such a big
> deal I guess and I may just resort to code generation as suggested by
> Dmitry.
I am considering the costs of moving to dynamic scheme now. If/when this
is done, you should be able to use Java API to feed the benchmarks with
different number of threads on different environments, because you can
call Runtime.getRuntime().availableProcessors() by yourself.
-Aleksey.
More information about the jmh-dev
mailing list