for (int x = 1; x < cnt; x++) {
if (run() != i) {
throw new RuntimeException("Result differs");
}
}
sw.stop();
System.out.println("Result : " + i + " took " + sw + " for " + cnt + " loops");
}
private static int run() {
int a, b, c, d, e, f, g, h, i, j, k;