mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 08:34:30 +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
|
@ -47,7 +47,7 @@ import java.util.regex.Pattern;
|
|||
@Fork(2)
|
||||
@Warmup(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS)
|
||||
@Measurement(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS)
|
||||
@State(Scope.Benchmark)
|
||||
@State(Scope.Thread)
|
||||
public class Exponential {
|
||||
/** Run length of non-matching consecutive whitespace chars. */
|
||||
@Param({"16", "128", "1024"})
|
||||
|
|
|
@ -47,7 +47,7 @@ import java.util.regex.Pattern;
|
|||
@Fork(1)
|
||||
@Warmup(iterations = 2, time = 3, timeUnit = TimeUnit.SECONDS)
|
||||
@Measurement(iterations = 4, time = 3, timeUnit = TimeUnit.SECONDS)
|
||||
@State(Scope.Benchmark)
|
||||
@State(Scope.Thread)
|
||||
public class Primality {
|
||||
/** Number to be primality tested. */
|
||||
@Param({"16", "17", /* "256", "257", */ "4096", "4099"})
|
||||
|
|
|
@ -78,7 +78,7 @@ import java.util.regex.Pattern;
|
|||
@Fork(2)
|
||||
@Warmup(iterations = 5, time = 3, timeUnit = TimeUnit.SECONDS)
|
||||
@Measurement(iterations = 5, time = 3, timeUnit = TimeUnit.SECONDS)
|
||||
@State(Scope.Benchmark)
|
||||
@State(Scope.Thread)
|
||||
public class Trim {
|
||||
/** Run length of non-matching consecutive whitespace chars. */
|
||||
@Param({"16", "256", "4096"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue