| OLD | NEW |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 for score_list in all_score_lists: | 74 for score_list in all_score_lists: |
| 75 all_scores.append(statistics.GeometricMean(score_list)) | 75 all_scores.append(statistics.GeometricMean(score_list)) |
| 76 results.AddSummaryValue(list_of_scalar_values.ListOfScalarValues( | 76 results.AddSummaryValue(list_of_scalar_values.ListOfScalarValues( |
| 77 None, 'Score', 'score', all_scores)) | 77 None, 'Score', 'score', all_scores)) |
| 78 | 78 |
| 79 | 79 |
| 80 @benchmark.Disabled('android', 'xp') # crbug.com/381742 | 80 @benchmark.Disabled('android', 'xp') # crbug.com/381742 |
| 81 class Jetstream(benchmark.Benchmark): | 81 class Jetstream(benchmark.Benchmark): |
| 82 test = _JetstreamMeasurement | 82 test = _JetstreamMeasurement |
| 83 | 83 |
| 84 @classmethod |
| 85 def Name(cls): |
| 86 return 'jetstream' |
| 87 |
| 84 def CreatePageSet(self, options): | 88 def CreatePageSet(self, options): |
| 85 ps = page_set.PageSet( | 89 ps = page_set.PageSet( |
| 86 archive_data_file='../page_sets/data/jetstream.json', | 90 archive_data_file='../page_sets/data/jetstream.json', |
| 87 file_path=os.path.abspath(__file__), | 91 file_path=os.path.abspath(__file__), |
| 88 bucket=page_set.INTERNAL_BUCKET) | 92 bucket=page_set.INTERNAL_BUCKET) |
| 89 ps.AddUserStory(page_module.Page( | 93 ps.AddUserStory(page_module.Page( |
| 90 'http://browserbench.org/JetStream/', ps, ps.base_dir, | 94 'http://browserbench.org/JetStream/', ps, ps.base_dir, |
| 91 make_javascript_deterministic=False)) | 95 make_javascript_deterministic=False)) |
| 92 return ps | 96 return ps |
| OLD | NEW |