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

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

Issue 1917393002: [tools/perf] Reference legacy_page_test module instead of page_test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « tools/perf/benchmarks/spaceport.py ('k') | tools/perf/benchmarks/sunspider.py » ('j') | 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
11 DOM APIs - a core set of web platform APIs used extensively in web applications- 11 DOM APIs - a core set of web platform APIs used extensively in web applications-
12 as well as six popular JavaScript frameworks: Ember.js, Backbone.js, jQuery, 12 as well as six popular JavaScript frameworks: Ember.js, Backbone.js, jQuery,
13 AngularJS, React, and Flight. Many of these frameworks are used on the most 13 AngularJS, React, and Flight. Many of these frameworks are used on the most
14 popular websites in the world, such as Facebook and Twitter. The performance of 14 popular websites in the world, such as Facebook and Twitter. The performance of
15 these types of operations depends on the speed of the DOM APIs, the JavaScript 15 these types of operations depends on the speed of the DOM APIs, the JavaScript
16 engine, CSS style resolution, layout, and other technologies. 16 engine, CSS style resolution, layout, and other technologies.
17 """ 17 """
18 18
19 import os 19 import os
20 20
21 from core import perf_benchmark 21 from core import perf_benchmark
22 22
23 from benchmarks import v8_helper 23 from benchmarks import v8_helper
24 24
25 from telemetry import benchmark 25 from telemetry import benchmark
26 from telemetry import page as page_module 26 from telemetry import page as page_module
27 from telemetry.page import page_test 27 from telemetry.page import legacy_page_test
28 from telemetry import story 28 from telemetry import story
29 from telemetry.value import list_of_scalar_values 29 from telemetry.value import list_of_scalar_values
30 30
31 from metrics import keychain_metric 31 from metrics import keychain_metric
32 32
33 33
34 class SpeedometerMeasurement(page_test.PageTest): 34 class SpeedometerMeasurement(legacy_page_test.LegacyPageTest):
35 enabled_suites = [ 35 enabled_suites = [
36 'VanillaJS-TodoMVC', 36 'VanillaJS-TodoMVC',
37 'EmberJS-TodoMVC', 37 'EmberJS-TodoMVC',
38 'BackboneJS-TodoMVC', 38 'BackboneJS-TodoMVC',
39 'jQuery-TodoMVC', 39 'jQuery-TodoMVC',
40 'AngularJS-TodoMVC', 40 'AngularJS-TodoMVC',
41 'React-TodoMVC', 41 'React-TodoMVC',
42 'FlightJS-TodoMVC' 42 'FlightJS-TodoMVC'
43 ] 43 ]
44 44
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 @benchmark.Disabled('reference') # crbug.com/579546 108 @benchmark.Disabled('reference') # crbug.com/579546
109 class SpeedometerIgnition(Speedometer): 109 class SpeedometerIgnition(Speedometer):
110 def SetExtraBrowserOptions(self, options): 110 def SetExtraBrowserOptions(self, options):
111 super(SpeedometerIgnition, self).SetExtraBrowserOptions(options) 111 super(SpeedometerIgnition, self).SetExtraBrowserOptions(options)
112 v8_helper.EnableIgnition(options) 112 v8_helper.EnableIgnition(options)
113 113
114 @classmethod 114 @classmethod
115 def Name(cls): 115 def Name(cls):
116 return 'speedometer-ignition' 116 return 'speedometer-ignition'
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/spaceport.py ('k') | tools/perf/benchmarks/sunspider.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698