blob: ac98a1b4046a3b09ce70a2a52260dbdf034172bf [file] [log] [blame]
diff --git a/driver.js b/driver.js
index 26394093758..f6496f970ee 100644
--- a/driver.js
+++ b/driver.js
@@ -136,6 +136,18 @@ class Driver {
this._benchmark = this._iterator ? this._iterator.next().value : null;
if (!this._benchmark) {
if (!this._numIterations) {
+
+ let tests = {};
+ for (let [benchmark, results] of this._benchmarks) {
+ let subtests = {};
+ for (let subResultName of Results.subResults)
+ subtests[subResultName] = {"metrics": {"Time": {"current": results[subResultName]._data}}};
+ tests[benchmark.name] = {"metrics": {"Time" : ["Geometric"]}, "tests": subtests};
+ }
+
+ let content = JSON.stringify({"ARES-6": {"metrics" : {"Time" : ["Geometric"]}, "tests" : tests}});
+ window.webdriver_results = content;
+
if (isInBrowser) {
this._statusCell.innerHTML =
(this._hadErrors ? "Failures encountered!" : "Restart");
diff --git a/index.html b/index.html
index 230657bac24..fb740f7f06d 100644
--- a/index.html
+++ b/index.html
@@ -11,6 +11,8 @@
document.getElementById("error").innerHTML = "ERROR: " + url + ":" + lineNumber + ": " + message;
}
+ window.onload = () => { setTimeout(() => driver.start(8), 3000); }
+
const isInBrowser = true;
</script>
<script src="driver.js"></script>