public static void doBenchmark(String name, int count, BenchmarkOperation operation, boolean silent) { long start = U.time(); for (int i = 0; i < count; i++) { operation.run(i); } if (!silent) { benchmarkComplete(name, count, start); } }
benchmarkComplete("avg(" + name + ")", threadsN * countPerThread, time);