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

Unified Diff: tools/perf/perf_tools/dom_perf.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/page_sets/sunspider.json ('k') | tools/perf/perf_tools/jsgamebench.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/perf_tools/dom_perf.py
diff --git a/tools/perf/perf_tools/dom_perf.py b/tools/perf/perf_tools/dom_perf.py
index a9f939034bb74df416cc7e3082a9eb8a88797757..7d991086b75300d6ed3412713717679b5d891ccc 100644
--- a/tools/perf/perf_tools/dom_perf.py
+++ b/tools/perf/perf_tools/dom_perf.py
@@ -4,9 +4,11 @@
import json
import math
+import os
from telemetry.core import util
from telemetry.page import page_measurement
+from telemetry.page import page_set
def _GeometricMean(values):
@@ -33,6 +35,23 @@ SCORE_TRACE_NAME = 'score'
class DomPerf(page_measurement.PageMeasurement):
+ def CreatePageSet(self, options):
+ BASE_PAGE = 'file:///../../../data/dom_perf/run.html?reportInJS=1&run='
+ return page_set.PageSet.FromDict({
+ 'pages': [
+ { 'url': BASE_PAGE + 'Accessors' },
+ { 'url': BASE_PAGE + 'CloneNodes' },
+ { 'url': BASE_PAGE + 'CreateNodes' },
+ { 'url': BASE_PAGE + 'DOMDivWalk' },
+ { 'url': BASE_PAGE + 'DOMTable' },
+ { 'url': BASE_PAGE + 'DOMWalk' },
+ { 'url': BASE_PAGE + 'Events' },
+ { 'url': BASE_PAGE + 'Get+Elements' },
+ { 'url': BASE_PAGE + 'GridSort' },
+ { 'url': BASE_PAGE + 'Template' }
+ ]
+ }, os.path.abspath(__file__))
+
@property
def results_are_the_same_on_every_page(self):
return False
« no previous file with comments | « tools/perf/page_sets/sunspider.json ('k') | tools/perf/perf_tools/jsgamebench.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698