< prev index next > test/micro/org/openjdk/bench/java/lang/foreign/ParallelSum.java
Print this page
@BenchmarkMode(Mode.AverageTime)
@Warmup(iterations = 5, time = 500, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 10, time = 500, timeUnit = TimeUnit.MILLISECONDS)
@State(org.openjdk.jmh.annotations.Scope.Thread)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
! @Fork(value = 3, jvmArgsAppend = "--enable-preview")
public class ParallelSum extends JavaLayouts {
final static int CARRIER_SIZE = 4;
final static int ALLOC_SIZE = CARRIER_SIZE * 1024 * 1024 * 256;
final static int ELEM_SIZE = ALLOC_SIZE / CARRIER_SIZE;
@BenchmarkMode(Mode.AverageTime)
@Warmup(iterations = 5, time = 500, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 10, time = 500, timeUnit = TimeUnit.MILLISECONDS)
@State(org.openjdk.jmh.annotations.Scope.Thread)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
! @Fork(3)
public class ParallelSum extends JavaLayouts {
final static int CARRIER_SIZE = 4;
final static int ALLOC_SIZE = CARRIER_SIZE * 1024 * 1024 * 256;
final static int ELEM_SIZE = ALLOC_SIZE / CARRIER_SIZE;
< prev index next >