[ENHANCE] BenchmarkRunner only executes Tornado versions if Tornado is enabled
@@ -20,8 +20,10 @@ import java.util.HashSet;
import java.util.Set;
import tornado.runtime.TornadoDriver;
+import static tornado.common.Tornado.getProperty;
import static tornado.common.Tornado.setProperty;
import static tornado.runtime.TornadoRuntime.getTornadoRuntime;
+import static tornado.common.Tornado.getProperty;
public abstract class BenchmarkRunner {
@@ -58,13 +60,13 @@ public abstract class BenchmarkRunner {
final BenchmarkDriver streamsTest = getStreamsDriver();
if (streamsTest != null) {
streamsTest.benchmark();
-
System.out.printf("bm=%-15s, id=%-20s, %s\n", id, "java-streams",
streamsTest.getSummary());
-
- // final double refElapsed = streamsTest.getElapsed();
}
+ final boolean tornadoEnabled = Boolean.parseBoolean(getProperty("tornado.enable", "True"));
+ if (tornadoEnabled) {
+
final Set<Integer> blacklistedDrivers = new HashSet<>();
final Set<Integer> blacklistedDevices = new HashSet<>();
@@ -97,6 +99,7 @@ public abstract class BenchmarkRunner {
}
}
}
+ }
public abstract void parseArgs(String[] args);
