< prev index next >
test/jdk/jdk/incubator/vector/benchmark/src/main/java/benchmark/jdk/incubator/vector/DoubleScalar.java
Print this page
rev 55894 : 8222897: [vector] Renaming of shift, rotate operations. Few other api changes.
Summary: Renaming of shift, rotate operations. Few other api changes.
Reviewed-by: jrose, briangoetz
*** 258,267 ****
--- 258,279 ----
+
+
+
+
+
+
+
+
+
+
+
+
@Benchmark
public void max(Blackhole bh) {
double[] as = fa.apply(size);
double[] bs = fb.apply(size);
double[] rs = fr.apply(size);
*** 296,306 ****
@Benchmark
! public void addAll(Blackhole bh) {
double[] as = fa.apply(size);
double r = 0;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = 0;
for (int i = 0; i < as.length; i++) {
--- 308,318 ----
@Benchmark
! public void addLanes(Blackhole bh) {
double[] as = fa.apply(size);
double r = 0;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = 0;
for (int i = 0; i < as.length; i++) {
*** 309,319 ****
}
bh.consume(r);
}
@Benchmark
! public void mulAll(Blackhole bh) {
double[] as = fa.apply(size);
double r = 1;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = 1;
for (int i = 0; i < as.length; i++) {
--- 321,331 ----
}
bh.consume(r);
}
@Benchmark
! public void mulLanes(Blackhole bh) {
double[] as = fa.apply(size);
double r = 1;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = 1;
for (int i = 0; i < as.length; i++) {
*** 322,332 ****
}
bh.consume(r);
}
@Benchmark
! public void minAll(Blackhole bh) {
double[] as = fa.apply(size);
double r = Double.POSITIVE_INFINITY;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = Double.POSITIVE_INFINITY;
for (int i = 0; i < as.length; i++) {
--- 334,344 ----
}
bh.consume(r);
}
@Benchmark
! public void minLanes(Blackhole bh) {
double[] as = fa.apply(size);
double r = Double.POSITIVE_INFINITY;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = Double.POSITIVE_INFINITY;
for (int i = 0; i < as.length; i++) {
*** 335,345 ****
}
bh.consume(r);
}
@Benchmark
! public void maxAll(Blackhole bh) {
double[] as = fa.apply(size);
double r = Double.NEGATIVE_INFINITY;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = Double.NEGATIVE_INFINITY;
for (int i = 0; i < as.length; i++) {
--- 347,357 ----
}
bh.consume(r);
}
@Benchmark
! public void maxLanes(Blackhole bh) {
double[] as = fa.apply(size);
double r = Double.NEGATIVE_INFINITY;
for (int ic = 0; ic < INVOC_COUNT; ic++) {
r = Double.NEGATIVE_INFINITY;
for (int i = 0; i < as.length; i++) {
< prev index next >