8287810: Reduce runtime of java.lang microbenchmarks

Reviewed-by: mchung
This commit is contained in:
Claes Redestad 2022-06-07 07:23:30 +00:00
parent aa6c568a06
commit 778ed1a760
39 changed files with 206 additions and 101 deletions

View file

@ -56,9 +56,9 @@ import java.util.concurrent.TimeUnit;
* (cd $(git rev-parse --show-toplevel) && for size in 3 16 999 999999; do make test TEST='micro:java.lang.ArrayFiddle' MICRO="FORK=2;WARMUP_ITER=4;ITER=4;OPTIONS=-opi $size -p size=$size" |& perl -ne 'print if /^Benchmark/ .. /^Finished running test/'; done)
*/
@BenchmarkMode(Mode.AverageTime)
@Fork(2)
@Warmup(iterations = 1)
@Measurement(iterations = 4)
@Warmup(iterations = 10, time = 1)
@Measurement(iterations = 5, time = 2)
@Fork(3)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@State(Scope.Benchmark)
public class ArrayFiddle {