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

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

Issue 816353008: [Telemetry] Explicitly define Name() method for all perf benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 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 """Runs Mozilla's Kraken JavaScript benchmark.""" 5 """Runs Mozilla's Kraken JavaScript benchmark."""
6 6
7 import os 7 import os
8 8
9 from metrics import power 9 from metrics import power
10 from telemetry import benchmark 10 from telemetry import benchmark
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 '(http://krakenbenchmark.mozilla.org/)')) 112 '(http://krakenbenchmark.mozilla.org/)'))
113 113
114 114
115 class Kraken(benchmark.Benchmark): 115 class Kraken(benchmark.Benchmark):
116 """Mozilla's Kraken JavaScript benchmark. 116 """Mozilla's Kraken JavaScript benchmark.
117 117
118 http://krakenbenchmark.mozilla.org/ 118 http://krakenbenchmark.mozilla.org/
119 """ 119 """
120 test = _KrakenMeasurement 120 test = _KrakenMeasurement
121 121
122 @classmethod
123 def Name(cls):
124 return 'kraken'
125
122 def CreatePageSet(self, options): 126 def CreatePageSet(self, options):
123 ps = page_set.PageSet( 127 ps = page_set.PageSet(
124 archive_data_file='../page_sets/data/kraken.json', 128 archive_data_file='../page_sets/data/kraken.json',
125 file_path=os.path.abspath(__file__), 129 file_path=os.path.abspath(__file__),
126 bucket=page_set.PARTNER_BUCKET) 130 bucket=page_set.PARTNER_BUCKET)
127 ps.AddUserStory(page_module.Page( 131 ps.AddUserStory(page_module.Page(
128 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', 132 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html',
129 ps, ps.base_dir)) 133 ps, ps.base_dir))
130 return ps 134 return ps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698