mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8287810: Reduce runtime of java.lang microbenchmarks
Reviewed-by: mchung
This commit is contained in:
parent
aa6c568a06
commit
778ed1a760
39 changed files with 206 additions and 101 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue