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

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

Issue 321483005: [Telemetry] Disable speedometer on android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« 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 16 matching lines...) Expand all
27 27
28 def MeasurePage(self, _, tab, results): 28 def MeasurePage(self, _, tab, results):
29 tab.WaitForDocumentReadyStateToBeComplete() 29 tab.WaitForDocumentReadyStateToBeComplete()
30 tab.ExecuteJavaScript('benchmarkClient.iterationCount = 10; startTest();') 30 tab.ExecuteJavaScript('benchmarkClient.iterationCount = 10; startTest();')
31 tab.WaitForJavaScriptExpression( 31 tab.WaitForJavaScriptExpression(
32 'benchmarkClient._finishedTestCount == benchmarkClient.testsCount', 600) 32 'benchmarkClient._finishedTestCount == benchmarkClient.testsCount', 600)
33 results.Add( 33 results.Add(
34 'Total', 'ms', tab.EvaluateJavaScript('benchmarkClient._timeValues')) 34 'Total', 'ms', tab.EvaluateJavaScript('benchmarkClient._timeValues'))
35 35
36 36
37 @test.Disabled('android') # Times out
xun.sun 2014/06/09 06:11:15 Sorry to comment on a closed patch. Is this tempor
37 class Speedometer(test.Test): 38 class Speedometer(test.Test):
38 test = SpeedometerMeasurement 39 test = SpeedometerMeasurement
39 40
40 def CreatePageSet(self, options): 41 def CreatePageSet(self, options):
41 ps = page_set.PageSet( 42 ps = page_set.PageSet(
42 file_path=os.path.abspath(__file__), 43 file_path=os.path.abspath(__file__),
43 archive_data_file='../page_sets/data/speedometer.json', 44 archive_data_file='../page_sets/data/speedometer.json',
44 make_javascript_deterministic=False) 45 make_javascript_deterministic=False)
45 ps.AddPageWithDefaultRunNavigate('http://browserbench.org/Speedometer/') 46 ps.AddPageWithDefaultRunNavigate('http://browserbench.org/Speedometer/')
46 return ps 47 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