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

Side by Side Diff: tools/perf/benchmarks/dromaeo.py

Issue 806513002: Move make_javascript_deterministic to UserStory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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 unified diff | Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/maps.py ('k') | tools/perf/benchmarks/jetstream.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import math 5 import math
6 import os 6 import os
7 7
8 from metrics import power 8 from metrics import power
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry import page as page_module 10 from telemetry import page as page_module
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 test = _DromaeoMeasurement 98 test = _DromaeoMeasurement
99 99
100 def CreatePageSet(self, options): 100 def CreatePageSet(self, options):
101 """Makes a PageSet for Dromaeo benchmarks.""" 101 """Makes a PageSet for Dromaeo benchmarks."""
102 # Subclasses are expected to define class members called query_param and 102 # Subclasses are expected to define class members called query_param and
103 # tag. 103 # tag.
104 if not hasattr(self, 'query_param') or not hasattr(self, 'tag'): 104 if not hasattr(self, 'query_param') or not hasattr(self, 'tag'):
105 raise NotImplementedError('query_param or tag not in Dromaeo benchmark.') 105 raise NotImplementedError('query_param or tag not in Dromaeo benchmark.')
106 archive_data_file = '../page_sets/data/dromaeo.%s.json' % self.tag 106 archive_data_file = '../page_sets/data/dromaeo.%s.json' % self.tag
107 ps = page_set.PageSet( 107 ps = page_set.PageSet(
108 make_javascript_deterministic=False,
109 archive_data_file=archive_data_file, 108 archive_data_file=archive_data_file,
110 file_path=os.path.abspath(__file__), bucket=page_set.PUBLIC_BUCKET) 109 file_path=os.path.abspath(__file__), bucket=page_set.PUBLIC_BUCKET)
111 url = 'http://dromaeo.com?%s' % self.query_param 110 url = 'http://dromaeo.com?%s' % self.query_param
112 ps.AddUserStory(page_module.Page(url, ps, ps.base_dir)) 111 ps.AddUserStory(page_module.Page(
112 url, ps, ps.base_dir, make_javascript_deterministic=False))
113 return ps 113 return ps
114 114
115 115
116 class DromaeoDomCoreAttr(_DromaeoBenchmark): 116 class DromaeoDomCoreAttr(_DromaeoBenchmark):
117 """Dromaeo DOMCore attr JavaScript benchmark.""" 117 """Dromaeo DOMCore attr JavaScript benchmark."""
118 tag = 'domcoreattr' 118 tag = 'domcoreattr'
119 query_param = 'dom-attr' 119 query_param = 'dom-attr'
120 120
121 121
122 class DromaeoDomCoreModify(_DromaeoBenchmark): 122 class DromaeoDomCoreModify(_DromaeoBenchmark):
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 """Dromaeo JSLib traverse prototype JavaScript benchmark""" 196 """Dromaeo JSLib traverse prototype JavaScript benchmark"""
197 tag = 'jslibtraverseprototype' 197 tag = 'jslibtraverseprototype'
198 query_param = 'jslib-traverse-prototype' 198 query_param = 'jslib-traverse-prototype'
199 199
200 200
201 class DromaeoCSSQueryJquery(_DromaeoBenchmark): 201 class DromaeoCSSQueryJquery(_DromaeoBenchmark):
202 """Dromaeo CSS Query jquery JavaScript benchmark""" 202 """Dromaeo CSS Query jquery JavaScript benchmark"""
203 tag = 'cssqueryjquery' 203 tag = 'cssqueryjquery'
204 query_param = 'cssquery-jquery' 204 query_param = 'cssquery-jquery'
205 205
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/maps.py ('k') | tools/perf/benchmarks/jetstream.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698