Gitlab service upgraded. Please report any problems to dl_gitadmin@cs.lth.se

Commit 48e73c6c authored by Noric Couderc's avatar Noric Couderc

Changed the number of iterations per app

We have three runs of warmup before recording the data.
parent 33195d1b
......@@ -86,14 +86,17 @@ public class ApplicationRunner {
public List<Double> runApplication(Application app) {
ArrayList<Double> durations = new ArrayList();
int numberSamples = 20;
int numberWarmups = 3;
try {
for (int i = 0; i < numberSamples; ++i) {
for (int i = -numberWarmups; i < numberSamples; ++i) {
long startTime = System.nanoTime();
app.benchmark();
long endTime = System.nanoTime();
long duration = (endTime - startTime);
durations.add((double) duration);
if (i >= 0) {
durations.add((double) duration);
}
}
} catch (Exception ignored) {
System.out.println("running Application failed");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment