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

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

Issue 1860013002: [perf] Add speedometer-ignition benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge master Created 4 years, 8 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 | tools/perf/benchmarks/v8.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
24
25 from telemetry import benchmark
23 from telemetry import page as page_module 26 from telemetry import page as page_module
24 from telemetry.page import page_test 27 from telemetry.page import page_test
25 from telemetry import story 28 from telemetry import story
26 from telemetry.value import list_of_scalar_values 29 from telemetry.value import list_of_scalar_values
27 30
28 from metrics import keychain_metric 31 from metrics import keychain_metric
29 32
30 33
31 class SpeedometerMeasurement(page_test.PageTest): 34 class SpeedometerMeasurement(page_test.PageTest):
32 enabled_suites = [ 35 enabled_suites = [
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 96
94 def CreateStorySet(self, options): 97 def CreateStorySet(self, options):
95 ps = story.StorySet( 98 ps = story.StorySet(
96 base_dir=os.path.dirname(os.path.abspath(__file__)), 99 base_dir=os.path.dirname(os.path.abspath(__file__)),
97 archive_data_file='../page_sets/data/speedometer.json', 100 archive_data_file='../page_sets/data/speedometer.json',
98 cloud_storage_bucket=story.PUBLIC_BUCKET) 101 cloud_storage_bucket=story.PUBLIC_BUCKET)
99 ps.AddStory(page_module.Page( 102 ps.AddStory(page_module.Page(
100 'http://browserbench.org/Speedometer/', ps, ps.base_dir, 103 'http://browserbench.org/Speedometer/', ps, ps.base_dir,
101 make_javascript_deterministic=False)) 104 make_javascript_deterministic=False))
102 return ps 105 return ps
106
107
108 @benchmark.Disabled('reference') # crbug.com/579546
109 class SpeedometerIgnition(Speedometer):
110 def SetExtraBrowserOptions(self, options):
111 super(SpeedometerIgnition, self).SetExtraBrowserOptions(options)
112 v8_helper.EnableIgnition(options)
113
114 @classmethod
115 def Name(cls):
116 return 'speedometer-ignition'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/v8.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698