< prev index next >
test/jdk/jdk/incubator/vector/templates/Perf-header.template
Print this page
rev 55594 : tests and benchmark changes
*** 23,32 ****
--- 23,33 ----
package benchmark.jdk.incubator.vector;
import jdk.incubator.vector.Vector;
import jdk.incubator.vector.Vector.Shape;
+ import jdk.incubator.vector.Vector.Species;
import jdk.incubator.vector.$Type$Vector;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import java.util.function.IntFunction;
*** 39,49 ****
@State(Scope.Benchmark)
@Warmup(iterations = 3, time = 1)
@Measurement(iterations = 5, time = 1)
@Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"})
public class $vectorbenchtype$ extends AbstractVectorBenchmark {
! static final $abstractvectortype$.$Type$Species SPECIES = $Type$Vector.species(Shape.S_$bits$_BIT);
static final int INVOC_COUNT = 1; // get rid of outer loop
@Param("1024")
int size;
--- 40,54 ----
@State(Scope.Benchmark)
@Warmup(iterations = 3, time = 1)
@Measurement(iterations = 5, time = 1)
@Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector"})
public class $vectorbenchtype$ extends AbstractVectorBenchmark {
! #if[MaxBit]
! static final Species<$Wideboxtype$> SPECIES = $Type$Vector.SPECIES_MAX;
! #else[MaxBit]
! static final Species<$Wideboxtype$> SPECIES = $Type$Vector.SPECIES_$bits$;
! #end[MaxBit]
static final int INVOC_COUNT = 1; // get rid of outer loop
@Param("1024")
int size;
< prev index next >