-
- @Benchmark
- @BenchmarkMode({Mode.Throughput})
- public int benchHiddenColsCopy(HiddenColsAndStartState tstate)
- {
- int startx = tstate.visibleColumn;
- int blockEnd;
- int blockStart = startx;
- int screenY = 0;
- for (int[] region : tstate.h.getHiddenColumnsCopy())
- {
- int hideStart = region[0];
- int hideEnd = region[1];
-
- if (hideStart <= blockStart)
- {
- blockStart += (hideEnd - hideStart) + 1;
- continue;
- }
-
- //do something
- Blackhole.consumeCPU(5);
- blockEnd = Math.min(hideStart - 1, blockStart + 60 - screenY);
-
- screenY += blockEnd - blockStart + 1;
- blockStart = hideEnd + 1;
-
- if (screenY > 60)
- {
- //done
- break;
- }
- }
- return blockStart;
- }
-
-