OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 import os | |
5 | |
6 from telemetry import test | |
7 from telemetry.core import util | |
8 from telemetry.page import page_set | |
9 | |
10 import measurements | |
11 | |
12 | |
13 class Smoothness(test.TelemetryTest): | |
nduca
2013/06/18 23:52:23
This is SmoothnessTop25 no?
dtu
2013/06/19 01:00:50
Done.
| |
14 """Measures rendering statistics while scrolling down the top 25 web pages""" | |
15 test = measurements.smoothness.Smoothness | |
16 page_set = 'page_sets/top_25.json' | |
17 options = {'report_all_results': False} | |
18 | |
19 class Sunspider(test.TelemetryTest): | |
20 """Performance on the SunSpider JavaScript benchmark""" | |
21 test = measurements.sunspider.Sunspider | |
nduca
2013/06/18 23:52:23
can you blow this file out to be one class per fil
dtu
2013/06/19 01:00:50
Done.
| |
22 | |
23 def CreatePageSet(self, options): | |
24 sunspider_dir = os.path.join(util.GetChromiumSrcDir(), | |
25 'chrome', 'test', 'data', 'sunspider') | |
26 return page_set.PageSet.FromDict( | |
27 { | |
28 'serving_dirs': [''], | |
29 'pages': [{ 'url': 'file:///sunspider-1.0/driver.html' }], | |
30 }, | |
31 sunspider_dir) | |
OLD | NEW |