Commit 51a04972 authored by Noric Couderc's avatar Noric Couderc

Added possible configuration for SyntheticBenchmarkRunner

The user is able to change the number of iterations
for measurement and warmup in SyntheticBenchmarkRunner
parent a42bbfd8
......@@ -17,6 +17,19 @@ public class SyntheticBenchmarkRunner {
protected Blackhole blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
private int numberSamples;
private int numberWarmups;
public SyntheticBenchmarkRunner() {
this.numberSamples = 20;
this.numberWarmups = 3;
}
public SyntheticBenchmarkRunner(int numberWarmups, int numberSamples) {
this.numberWarmups = numberWarmups;
this.numberSamples = numberSamples;
}
/**
* Runs a list of applications.
* @param applications
......@@ -238,4 +251,12 @@ public class SyntheticBenchmarkRunner {
}
*/
}
public int getNumberSamples() {
return numberSamples;
}
public int getNumberWarmups() {
return numberWarmups;
}
}
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