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

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

Issue 742923002: Revert of telemetry: Disabled speedometer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 """Apple's Speedometer performance benchmark. 5 """Apple's Speedometer performance benchmark.
6 6
7 Speedometer measures simulated user interactions in web applications. 7 Speedometer measures simulated user interactions in web applications.
8 8
9 The current benchmark uses TodoMVC to simulate user actions for adding, 9 The current benchmark uses TodoMVC to simulate user actions for adding,
10 completing, and removing to-do items. Speedometer repeats the same actions using 10 completing, and removing to-do items. Speedometer repeats the same actions using
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 page, suite_name, 'ms', 65 page, suite_name, 'ms',
66 tab.EvaluateJavaScript(""" 66 tab.EvaluateJavaScript("""
67 var suite_times = []; 67 var suite_times = [];
68 for(var i = 0; i < benchmarkClient.iterationCount; i++) { 68 for(var i = 0; i < benchmarkClient.iterationCount; i++) {
69 suite_times.push( 69 suite_times.push(
70 benchmarkClient._measuredValues[i].tests['%s'].total); 70 benchmarkClient._measuredValues[i].tests['%s'].total);
71 }; 71 };
72 suite_times; 72 suite_times;
73 """ % suite_name), important=False)) 73 """ % suite_name), important=False))
74 74
75
76 @benchmark.Disabled #crbug.com/406422
77 class Speedometer(benchmark.Benchmark): 75 class Speedometer(benchmark.Benchmark):
78 test = SpeedometerMeasurement 76 test = SpeedometerMeasurement
79 77
80 def CreatePageSet(self, options): 78 def CreatePageSet(self, options):
81 ps = page_set.PageSet( 79 ps = page_set.PageSet(
82 file_path=os.path.abspath(__file__), 80 file_path=os.path.abspath(__file__),
83 archive_data_file='../page_sets/data/speedometer.json', 81 archive_data_file='../page_sets/data/speedometer.json',
84 make_javascript_deterministic=False) 82 make_javascript_deterministic=False)
85 ps.AddPageWithDefaultRunNavigate('http://browserbench.org/Speedometer/') 83 ps.AddPageWithDefaultRunNavigate('http://browserbench.org/Speedometer/')
86 return ps 84 return ps
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698