GroupThreads all remainig

Nitsan Wakart nitsanw at yahoo.com
Fri Jun 24 19:48:30 UTC 2016


You can use the '-tg' option which allows control on thread counts.For your benchmark you'd go from command line:java -jar benchy.jar -tg 1,127 FooBench 

    On Friday, June 24, 2016 9:18 PM, "thurston at nomagicsoftware.com" <thurston at nomagicsoftware.com> wrote:
 

 I was curious whether there is a way to specify like the following:



@Group("abc")
@GroupThreads(1)
@Benchmark
......

@Group("abc")
@GroupThreads(*)
@Benchmark
.....

Where the star would indicate "all of the rest of the threads"

I realize the value parameter is an int, so something like -1 could 
serve as the indicator.

I tend to set the benchmark threads from the command-line, and it would 
be a lot easier to just compile the benchmark once





   


More information about the jmh-dev mailing list