3435363738394041424344
} }; Benchmark benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); PerformanceStore.store("performance - simpleAddition.csv", benchmark); Assert.assertTrue(benchmark.getMean() < 0.0006); }
7475767778798081828384
} }; Benchmark benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); PerformanceStore.store("performance - quicksort.csv", benchmark); Assert.assertTrue(benchmark.getMean() < 0.9); }
9899100101102103104105106107108
} }; Benchmark benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); PerformanceStore.store("performance - factorial.csv", benchmark); Assert.assertTrue(benchmark.getMean() < 0.02); }
2122232425262728293031
} }; Benchmark benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); PerformanceStore.store("control - simpleAddition.csv", benchmark); Assert.assertTrue(benchmark.getMean() < 0.00006); }
4546474849505152535455
} }; Benchmark benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); PerformanceStore.store("control - quicksort.csv", benchmark); Assert.assertTrue(benchmark.getMean() < 0.9); }
7071727374757677787980
} }; Benchmark benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); PerformanceStore.store("control - factorial.csv", benchmark); Assert.assertTrue(benchmark.getMean() < 0.02); }
1314151617181920212223
new Main().execute(1); } }; Benchmark benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); task = new Runnable() { public void run() {
2425262728293031323334
new Main().execute(2); } }; benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); task = new Runnable() { public void run() {
3536373839404142434445
new Main().execute(3); } }; benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); task = new Runnable() { public void run() {
4647484950515253545556
new Main().execute(4); } }; benchmark = new Benchmark(task); System.out.println(benchmark.toStringFull()); task = new Runnable() { public void run() {