Host DoYouEvenBench on webkit.org
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Jan 2014 21:31:24 +0000 (21:31 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Jan 2014 21:31:24 +0000 (21:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=127185

Reviewed by Benjamin Poulain.

The previous patch didn't quite work due to cross-origin restrictions.
Simply add a hyperlink to a trac page.

* perf/DoYouEvenBench/index.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162220 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/webkit.org/ChangeLog
Websites/webkit.org/perf/DoYouEvenBench/index.html

index e847236520fc5013717f2099345a649d5fcf47fe..41d2f9d49ac1c77ac18b845b62da70cceb4568c2 100644 (file)
@@ -1,3 +1,15 @@
+2014-01-17  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Host DoYouEvenBench on webkit.org
+        https://bugs.webkit.org/show_bug.cgi?id=127185
+
+        Reviewed by Benjamin Poulain.
+
+        The previous patch didn't quite work due to cross-origin restrictions.
+        Simply add a hyperlink to a trac page.
+
+        * perf/DoYouEvenBench/index.html:
+
 2014-01-17  Ryosuke Niwa  <rniwa@webkit.org>
 
         Host DoYouEvenBench on webkit.org
index 33eafacef739f465c7302b59c2d1d610c778dc6d..9bc88247c75bef2617e57ebde1f6d176ad583e36 100644 (file)
@@ -1,45 +1,6 @@
 <!DOCTYPE html>
 <html>
-<head>
-<title>DoYouEvenBench</title>
-<script>
-
-(function () {
-    var values = [];
-    var pre = null;
-    var iterationNumber = 0;
-    window.benchmarkClient = {
-        didRunSuites: function (measuredValues) {
-            if (!pre) {
-                pre = document.createElement('pre');
-                pre.style.paddingTop = '600px';
-                document.body.appendChild(pre);
-            }
-            values.push(measuredValues.total);
-            iterationNumber++;
-            pre.appendChild(document.createTextNode('Iteration ' + iterationNumber + ': ' + measuredValues.total + ' ms\n'));
-        },
-        didFinishLastIteration: function () {
-            var sum = 0;
-            for (var i = 0; i < values.length; i++)
-                sum += values[i];
-            pre.appendChild(document.createTextNode('Average: ' + (sum / iterationNumber)  + ' ms\n'));
-            pre.style.paddingTop = 0;
-        }
-    }
-})();
-
-function startTest() {
-    var iterationCount = 5;
-    var runner = new BenchmarkRunner(Suites, benchmarkClient);
-    runner.runMultipleIterations(iterationCount);
-}
-
-</script>
-<script src="https://svn.webkit.org/repository/webkit/trunk/PerformanceTests/DoYouEvenBench/resources/benchmark-runner.js"></script>
-<script src="https://svn.webkit.org/repository/webkit/trunk/PerformanceTests/DoYouEvenBench/resources/benchmark-report.js"></script>
-<script src="https://svn.webkit.org/repository/webkit/trunk/PerformanceTests/DoYouEvenBench/resources/tests.js"></script>
-</head>
-<body onload="startTest()">
+<body>
+<a href="https://trac.webkit.org/export/162218/trunk/PerformanceTests/DoYouEvenBench/Full.html">Start the benchmark.</a>
 </body>
 </html>