1
2 @Benchmark
3 public void [[TEST]][[TEST_TYPE]][[OP_NAME]](Blackhole bh) {
4 $type$[] as = fa.apply(size);
5 $type$[] bs = fb.apply(size);
6 boolean r = true;
7
8 for (int ic = 0; ic < INVOC_COUNT; ic++) {
9 for (int i = 0; i < as.length; i++) {
10 r &= [[TEST_OP]](as[i], bs[i]); // accumulate so JIT can't eliminate the computation
11 }
12 }
13
14 bh.consume(r);
15 }