GroupThreads all remainig

thurston at nomagicsoftware.com thurston at nomagicsoftware.com
Fri Jun 24 20:35:29 UTC 2016


How are the comma-separated values assigned?
By line#?  Or lexically, based on the benchmark methods names?
The info printed doesn't indicate the thread  assignment.

On 2016-06-24 12:48, Nitsan Wakart wrote:
> 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