OLD | NEW |
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 Loading... |
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 |
OLD | NEW |