124125126127128129130131132133134
} try { int count = 1; for(Future<BenchmarkResult> f : futures){ BenchmarkResult r = f.get(); print(r,count); results.add(f.get()); count++; } } catch (InterruptedException e) {
157158159160161162163
vehicles[run] = best.getRoutes().size(); results[run] = cost.getCost(best); times[run] = stopwatch.getCompTimeInSeconds(); } return new BenchmarkResult(p, runs, results, times, vehicles); }
3334353637383940414243
int tasks = results.size(); // Calculate MFLOPS double mflops = CalculationSupport.getSOR(cyclesPerTask*tasks, time); BenchmarkResult result = new BenchmarkResult(type, mflops, time); result.setCyclesPerTask(cyclesPerTask); result.setTasks(tasks); return result; }
int tasks = results.size(); // Calculate MFLOPS double mflops = CalculationSupport.getLU(cyclesPerTask*tasks, time); BenchmarkResult result = new BenchmarkResult(type, mflops, time); result.setCyclesPerTask(cyclesPerTask); result.setTasks(tasks); return result; }
3233343536373839404142
int tasks = results.size(); // Calculate MFLOPS double mflops = CalculationSupport.getSparse(cyclesPerTask*tasks, time); BenchmarkResult result = new BenchmarkResult(type, mflops, time); result.setCyclesPerTask(cyclesPerTask); result.setTasks(tasks); return result; }
int tasks = results.size(); // Calculate MFLOPS double mflops = CalculationSupport.getFFT(cyclesPerTask*tasks, time); BenchmarkResult result = new BenchmarkResult(type, mflops, time); result.setCyclesPerTask(cyclesPerTask); result.setTasks(tasks); return result; }
int tasks = results.size(); // Calculate MFLOPS double mflops = CalculationSupport.getMonteCarlo(cyclesPerTask*tasks, time); BenchmarkResult result = new BenchmarkResult(type, mflops, time); result.setCyclesPerTask(cyclesPerTask); result.setTasks(tasks); return result; }
282930313233343536
} public static void main (String[] args) { Benchmark benchmark = new Benchmark(); benchmark.add(StorageBench.class); BenchmarkResult res = benchmark.run(); TabularSummaryOutput tab = new TabularSummaryOutput(); tab.visitBenchmark(res); }