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

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

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 years, 9 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/memory.py ('k') | tools/perf/benchmarks/oilpan_gc_times.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 metrics import power
17 from telemetry import benchmark 16 from telemetry import benchmark
18 from telemetry import page as page_module 17 from telemetry import page as page_module
19 from telemetry.page import page_set 18 from telemetry.page import page_set
20 from telemetry.page import page_test 19 from telemetry.page import page_test
21 from telemetry.util import statistics 20 from telemetry.util import statistics
22 from telemetry.value import scalar 21 from telemetry.value import scalar
23 22
23 from metrics import power
24
24 _GB = 1024 * 1024 * 1024 25 _GB = 1024 * 1024 * 1024
25 26
26 DESCRIPTIONS = { 27 DESCRIPTIONS = {
27 'CodeLoad': 28 'CodeLoad':
28 'Measures how quickly a JavaScript engine can start executing code ' 29 'Measures how quickly a JavaScript engine can start executing code '
29 'after loading a large JavaScript program, social widget being a common ' 30 'after loading a large JavaScript program, social widget being a common '
30 'example. The source for test is derived from open source libraries ' 31 'example. The source for test is derived from open source libraries '
31 '(Closure, jQuery) (1,530 lines).', 32 '(Closure, jQuery) (1,530 lines).',
32 'Crypto': 33 'Crypto':
33 'Encryption and decryption benchmark based on code by Tom Wu ' 34 'Encryption and decryption benchmark based on code by Tom Wu '
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 143
143 def CreatePageSet(self, options): 144 def CreatePageSet(self, options):
144 ps = page_set.PageSet( 145 ps = page_set.PageSet(
145 archive_data_file='../page_sets/data/octane.json', 146 archive_data_file='../page_sets/data/octane.json',
146 file_path=os.path.abspath(__file__), 147 file_path=os.path.abspath(__file__),
147 bucket=page_set.PUBLIC_BUCKET) 148 bucket=page_set.PUBLIC_BUCKET)
148 ps.AddUserStory(page_module.Page( 149 ps.AddUserStory(page_module.Page(
149 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1', 150 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1',
150 ps, ps.base_dir, make_javascript_deterministic=False)) 151 ps, ps.base_dir, make_javascript_deterministic=False))
151 return ps 152 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/memory.py ('k') | tools/perf/benchmarks/oilpan_gc_times.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698