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

Side by Side Diff: tools/perf/benchmarks/sunspider.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/speedometer.py ('k') | tools/perf/measurements/blink_style.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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import collections 4 import collections
5 import json 5 import json
6 import os 6 import os
7 7
8 from core import perf_benchmark 8 from core import perf_benchmark
9 9
10 from telemetry import page as page_module 10 from telemetry import page as page_module
11 from telemetry.page import page_test 11 from telemetry.page import legacy_page_test
12 from telemetry import story 12 from telemetry import story
13 from telemetry.value import list_of_scalar_values 13 from telemetry.value import list_of_scalar_values
14 14
15 from metrics import power 15 from metrics import power
16 16
17 17
18 _URL = 'http://www.webkit.org/perf/sunspider-1.0.2/sunspider-1.0.2/driver.html' 18 _URL = 'http://www.webkit.org/perf/sunspider-1.0.2/sunspider-1.0.2/driver.html'
19 19
20 DESCRIPTIONS = { 20 DESCRIPTIONS = {
21 '3d-cube': 21 '3d-cube':
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 'math-spectral-norm': 'Various mathematical type computations.', 68 'math-spectral-norm': 'Various mathematical type computations.',
69 'regexp-dna': 'Regular expressions performance.', 69 'regexp-dna': 'Regular expressions performance.',
70 'string-base64': 'String processing.', 70 'string-base64': 'String processing.',
71 'string-fasta': 'String processing', 71 'string-fasta': 'String processing',
72 'string-tagcloud': 'String processing code to generate a giant "tagcloud".', 72 'string-tagcloud': 'String processing code to generate a giant "tagcloud".',
73 'string-unpack-code': 'String processing code to extracting compressed JS.', 73 'string-unpack-code': 'String processing code to extracting compressed JS.',
74 'string-validate-input': 'String processing.', 74 'string-validate-input': 'String processing.',
75 } 75 }
76 76
77 77
78 class _SunspiderMeasurement(page_test.PageTest): 78 class _SunspiderMeasurement(legacy_page_test.LegacyPageTest):
79 79
80 def __init__(self): 80 def __init__(self):
81 super(_SunspiderMeasurement, self).__init__() 81 super(_SunspiderMeasurement, self).__init__()
82 self._power_metric = None 82 self._power_metric = None
83 83
84 def CustomizeBrowserOptions(self, options): 84 def CustomizeBrowserOptions(self, options):
85 power.PowerMetric.CustomizeBrowserOptions(options) 85 power.PowerMetric.CustomizeBrowserOptions(options)
86 86
87 def WillStartBrowser(self, platform): 87 def WillStartBrowser(self, platform):
88 self._power_metric = power.PowerMetric(platform) 88 self._power_metric = power.PowerMetric(platform)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 return 'sunspider' 139 return 'sunspider'
140 140
141 def CreateStorySet(self, options): 141 def CreateStorySet(self, options):
142 ps = story.StorySet( 142 ps = story.StorySet(
143 archive_data_file='../page_sets/data/sunspider.json', 143 archive_data_file='../page_sets/data/sunspider.json',
144 base_dir=os.path.dirname(os.path.abspath(__file__)), 144 base_dir=os.path.dirname(os.path.abspath(__file__)),
145 cloud_storage_bucket=story.PARTNER_BUCKET) 145 cloud_storage_bucket=story.PARTNER_BUCKET)
146 ps.AddStory(page_module.Page( 146 ps.AddStory(page_module.Page(
147 _URL, ps, ps.base_dir, make_javascript_deterministic=False)) 147 _URL, ps, ps.base_dir, make_javascript_deterministic=False))
148 return ps 148 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/speedometer.py ('k') | tools/perf/measurements/blink_style.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698