1
2 @Benchmark
3 public Object [[TEST]][[TEST_TYPE]][[OP_NAME]]() {
4 $type$[] as = fa.apply(size);
5 $type$[] rs = fr.apply(size);
6
7 for (int i = 0; i < as.length; i++) {
8 $type$ a = as[i];
9 rs[i] = ($type$)([[TEST_OP]]);
10 }
11
12 return rs;
13 }
|
1
2 @Benchmark
3 public void [[TEST]][[TEST_TYPE]][[OP_NAME]](Blackhole bh) {
4 $type$[] as = fa.apply(size);
5 $type$[] rs = fr.apply(size);
6
7 for (int ic = 0; ic < INVOC_COUNT; ic++) {
8 for (int i = 0; i < as.length; i++) {
9 $type$ a = as[i];
10 rs[i] = ($type$)([[TEST_OP]]);
11 }
12 }
13
14 bh.consume(rs);
15 }
|