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

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

Issue 2844253005: [tools/perf] Enable Jetstream on Android. (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | 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
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 for i, score in enumerate(v['result']): 68 for i, score in enumerate(v['result']):
69 if len(all_score_lists) <= i: 69 if len(all_score_lists) <= i:
70 all_score_lists.append([]) 70 all_score_lists.append([])
71 all_score_lists[i].append(score) 71 all_score_lists[i].append(score)
72 all_scores = [] 72 all_scores = []
73 for score_list in all_score_lists: 73 for score_list in all_score_lists:
74 all_scores.append(statistics.GeometricMean(score_list)) 74 all_scores.append(statistics.GeometricMean(score_list))
75 results.AddSummaryValue(list_of_scalar_values.ListOfScalarValues( 75 results.AddSummaryValue(list_of_scalar_values.ListOfScalarValues(
76 None, 'Score', 'score', all_scores)) 76 None, 'Score', 'score', all_scores))
77 77
78
79 @benchmark.Disabled('android')
80 @benchmark.Owner(emails=['bmeurer@chromium.org', 'mvstanton@chromium.org']) 78 @benchmark.Owner(emails=['bmeurer@chromium.org', 'mvstanton@chromium.org'])
81 class Jetstream(perf_benchmark.PerfBenchmark): 79 class Jetstream(perf_benchmark.PerfBenchmark):
82 test = _JetstreamMeasurement 80 test = _JetstreamMeasurement
83 81
84 @classmethod 82 @classmethod
85 def Name(cls): 83 def Name(cls):
86 return 'jetstream' 84 return 'jetstream'
87 85
88 def CreateStorySet(self, options): 86 def CreateStorySet(self, options):
89 ps = story.StorySet( 87 ps = story.StorySet(
90 archive_data_file='../page_sets/data/jetstream.json', 88 archive_data_file='../page_sets/data/jetstream.json',
91 base_dir=os.path.dirname(os.path.abspath(__file__)), 89 base_dir=os.path.dirname(os.path.abspath(__file__)),
92 cloud_storage_bucket=story.INTERNAL_BUCKET) 90 cloud_storage_bucket=story.INTERNAL_BUCKET)
93 ps.AddStory(page_module.Page( 91 ps.AddStory(page_module.Page(
94 'http://browserbench.org/JetStream/', ps, ps.base_dir, 92 'http://browserbench.org/JetStream/', ps, ps.base_dir,
95 make_javascript_deterministic=False)) 93 make_javascript_deterministic=False))
96 return ps 94 return ps
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698