Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: tools/perf/perf_tools/kraken.py

Issue 15463003: [Telemetry] Utilize CreatePageSet for benchmarks with one page set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make file_path required Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/perf_tools/jsgamebench.py ('k') | tools/perf/perf_tools/octane.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/perf_tools/kraken.py
diff --git a/tools/perf/perf_tools/kraken.py b/tools/perf/perf_tools/kraken.py
index 2d2086d5599399f0df2be1a62636244757257251..e19da487b2da7eadfe55e7f84bc5a333b2933b4f 100644
--- a/tools/perf/perf_tools/kraken.py
+++ b/tools/perf/perf_tools/kraken.py
@@ -2,13 +2,26 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+"""Runs Mozilla's Kraken JavaScript benchmark."""
+
+import os
+
from telemetry.core import util
from telemetry.page import page_measurement
+from telemetry.page import page_set
def _Mean(l):
return float(sum(l)) / len(l) if len(l) > 0 else 0.0
class Kraken(page_measurement.PageMeasurement):
+ def CreatePageSet(self, options):
+ return page_set.PageSet.FromDict({
+ 'archive_data_file': '../data/kraken.json',
+ 'pages': [
+ { 'url': 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html' }
+ ]
+ }, os.path.abspath(__file__))
+
def MeasurePage(self, _, tab, results):
js_is_done = """
document.title.indexOf("Results") != -1 && document.readyState == "complete"
« no previous file with comments | « tools/perf/perf_tools/jsgamebench.py ('k') | tools/perf/perf_tools/octane.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698