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

Side by Side Diff: tools/perf/benchmarks/jetstream.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/indexeddb_perf.py ('k') | tools/perf/benchmarks/kraken.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 """Runs Apple's JetStream benchmark. 5 """Runs Apple's JetStream benchmark.
6 6
7 JetStream combines a variety of JavaScript benchmarks, covering a variety of 7 JetStream combines a variety of JavaScript benchmarks, covering a variety of
8 advanced workloads and programming techniques, and reports a single score that 8 advanced workloads and programming techniques, and reports a single score that
9 balances them using geometric mean. 9 balances them using geometric mean.
10 10
11 Each benchmark measures a distinct workload, and no single optimization 11 Each benchmark measures a distinct workload, and no single optimization
12 technique is sufficient to speed up all benchmarks. Latency tests measure that 12 technique is sufficient to speed up all benchmarks. Latency tests measure that
13 a web application can start up quickly, ramp up to peak performance quickly, 13 a web application can start up quickly, ramp up to peak performance quickly,
14 and run smoothly without interruptions. Throughput tests measure the sustained 14 and run smoothly without interruptions. Throughput tests measure the sustained
15 peak performance of a web application, ignoring ramp-up time and spikes in 15 peak performance of a web application, ignoring ramp-up time and spikes in
16 smoothness. Some benchmarks demonstrate trade-offs, and aggressive or 16 smoothness. Some benchmarks demonstrate trade-offs, and aggressive or
17 specialized optimization for one benchmark might make another benchmark slower. 17 specialized optimization for one benchmark might make another benchmark slower.
18 """ 18 """
19 19
20 import json 20 import json
21 import os 21 import os
22 22
23 from core import perf_benchmark 23 from core import perf_benchmark
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.util import statistics 29 from telemetry.util import statistics
30 from telemetry.value import list_of_scalar_values 30 from telemetry.value import list_of_scalar_values
31 31
32 32
33 class _JetstreamMeasurement(page_test.PageTest): 33 class _JetstreamMeasurement(legacy_page_test.LegacyPageTest):
34 34
35 def __init__(self): 35 def __init__(self):
36 super(_JetstreamMeasurement, self).__init__() 36 super(_JetstreamMeasurement, self).__init__()
37 37
38 def WillNavigateToPage(self, page, tab): 38 def WillNavigateToPage(self, page, tab):
39 page.script_to_evaluate_on_commit = """ 39 page.script_to_evaluate_on_commit = """
40 var __results = []; 40 var __results = [];
41 var __real_log = window.console.log; 41 var __real_log = window.console.log;
42 window.console.log = function() { 42 window.console.log = function() {
43 __results.push(Array.prototype.join.call(arguments, ' ')); 43 __results.push(Array.prototype.join.call(arguments, ' '));
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 def CreateStorySet(self, options): 90 def CreateStorySet(self, options):
91 ps = story.StorySet( 91 ps = story.StorySet(
92 archive_data_file='../page_sets/data/jetstream.json', 92 archive_data_file='../page_sets/data/jetstream.json',
93 base_dir=os.path.dirname(os.path.abspath(__file__)), 93 base_dir=os.path.dirname(os.path.abspath(__file__)),
94 cloud_storage_bucket=story.INTERNAL_BUCKET) 94 cloud_storage_bucket=story.INTERNAL_BUCKET)
95 ps.AddStory(page_module.Page( 95 ps.AddStory(page_module.Page(
96 'http://browserbench.org/JetStream/', ps, ps.base_dir, 96 'http://browserbench.org/JetStream/', ps, ps.base_dir,
97 make_javascript_deterministic=False)) 97 make_javascript_deterministic=False))
98 return ps 98 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/benchmarks/kraken.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698