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

Side by Side Diff: tools/perf/benchmarks/octane.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/media.py ('k') | tools/perf/benchmarks/oortonline.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 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 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 """Runs Octane 2.0 javascript benchmark. 5 """Runs Octane 2.0 javascript benchmark.
6 6
7 Octane 2.0 is a modern benchmark that measures a JavaScript engine's performance 7 Octane 2.0 is a modern benchmark that measures a JavaScript engine's performance
8 by running a suite of tests representative of today's complex and demanding web 8 by running a suite of tests representative of today's complex and demanding web
9 applications. Octane's goal is to measure the performance of JavaScript code 9 applications. Octane's goal is to measure the performance of JavaScript code
10 found in large, real-world web applications. 10 found in large, real-world web applications.
11 Octane 2.0 consists of 17 tests, four more than Octane v1. 11 Octane 2.0 consists of 17 tests, four more than Octane v1.
12 """ 12 """
13 13
14 import os 14 import os
15 15
16 from core import perf_benchmark 16 from core import perf_benchmark
17 17
18 from telemetry import page as page_module 18 from telemetry import page as page_module
19 from telemetry.page import page_test 19 from telemetry.page import legacy_page_test
20 from telemetry import story 20 from telemetry import story
21 from telemetry.util import statistics 21 from telemetry.util import statistics
22 from telemetry.value import scalar 22 from telemetry.value import scalar
23 23
24 from metrics import power 24 from metrics import power
25 25
26 _GB = 1024 * 1024 * 1024 26 _GB = 1024 * 1024 * 1024
27 27
28 DESCRIPTIONS = { 28 DESCRIPTIONS = {
29 'CodeLoad': 29 'CodeLoad':
(...skipping 30 matching lines...) Expand all
60 '(1761 lines).', 60 '(1761 lines).',
61 'Richards': 61 'Richards':
62 'OS kernel simulation benchmark, originally written in BCPL by Martin ' 62 'OS kernel simulation benchmark, originally written in BCPL by Martin '
63 'Richards (539 lines).', 63 'Richards (539 lines).',
64 'Splay': 64 'Splay':
65 'Data manipulation benchmark that deals with splay trees and exercises ' 65 'Data manipulation benchmark that deals with splay trees and exercises '
66 'the automatic memory management subsystem (394 lines).', 66 'the automatic memory management subsystem (394 lines).',
67 } 67 }
68 68
69 69
70 class _OctaneMeasurement(page_test.PageTest): 70 class _OctaneMeasurement(legacy_page_test.LegacyPageTest):
71 71
72 def __init__(self): 72 def __init__(self):
73 super(_OctaneMeasurement, self).__init__() 73 super(_OctaneMeasurement, self).__init__()
74 self._power_metric = None 74 self._power_metric = None
75 75
76 def CustomizeBrowserOptions(self, options): 76 def CustomizeBrowserOptions(self, options):
77 power.PowerMetric.CustomizeBrowserOptions(options) 77 power.PowerMetric.CustomizeBrowserOptions(options)
78 78
79 def WillStartBrowser(self, platform): 79 def WillStartBrowser(self, platform):
80 self._power_metric = power.PowerMetric(platform) 80 self._power_metric = power.PowerMetric(platform)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 def CreateStorySet(self, options): 146 def CreateStorySet(self, options):
147 ps = story.StorySet( 147 ps = story.StorySet(
148 archive_data_file='../page_sets/data/octane.json', 148 archive_data_file='../page_sets/data/octane.json',
149 base_dir=os.path.dirname(os.path.abspath(__file__)), 149 base_dir=os.path.dirname(os.path.abspath(__file__)),
150 cloud_storage_bucket=story.PUBLIC_BUCKET) 150 cloud_storage_bucket=story.PUBLIC_BUCKET)
151 ps.AddStory(page_module.Page( 151 ps.AddStory(page_module.Page(
152 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1', 152 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1',
153 ps, ps.base_dir, make_javascript_deterministic=False)) 153 ps, ps.base_dir, make_javascript_deterministic=False))
154 return ps 154 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/media.py ('k') | tools/perf/benchmarks/oortonline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698