mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8314085: Fixing scope from benchmark to thread for JMH tests having shared state
Co-authored-by: Vladimir Ivanov <vaivanov@openjdk.org> Reviewed-by: sviswanathan, ecaspole
This commit is contained in:
parent
ae796a4e10
commit
b438cffdb9
38 changed files with 46 additions and 46 deletions
|
@ -32,7 +32,7 @@ import java.util.concurrent.TimeUnit;
|
|||
*/
|
||||
@BenchmarkMode(Mode.AverageTime)
|
||||
@OutputTimeUnit(TimeUnit.NANOSECONDS)
|
||||
@State(Scope.Benchmark)
|
||||
@State(Scope.Thread)
|
||||
@Warmup(iterations = 5, time = 1)
|
||||
@Measurement(iterations = 5, time = 1)
|
||||
@Fork(value = 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue