| 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 import page_sets | 5 import page_sets |
| 6 | 6 |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 from telemetry.page import page_test | 9 from telemetry.page import page_test |
| 10 from telemetry.value import scalar | 10 from telemetry.value import scalar |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 scores = tab.EvaluateJavaScript('window.benchmarkScore') | 26 scores = tab.EvaluateJavaScript('window.benchmarkScore') |
| 27 for score in scores: | 27 for score in scores: |
| 28 valid = score['valid'] | 28 valid = score['valid'] |
| 29 if valid: | 29 if valid: |
| 30 results.AddValue(scalar.ScalarValue( | 30 results.AddValue(scalar.ScalarValue( |
| 31 results.current_page, score['name'], 'score', score['score'], | 31 results.current_page, score['name'], 'score', score['score'], |
| 32 important=True, improvement_direction=improvement_direction.UP)) | 32 important=True, improvement_direction=improvement_direction.UP)) |
| 33 | 33 |
| 34 | 34 |
| 35 @benchmark.Disabled('android') | 35 @benchmark.Disabled('android') |
| 36 @benchmark.Disabled('mac', 'win') # crbug.com/599416 |
| 36 class OortOnline(perf_benchmark.PerfBenchmark): | 37 class OortOnline(perf_benchmark.PerfBenchmark): |
| 37 """OortOnline benchmark that measures WebGL and V8 performance. | 38 """OortOnline benchmark that measures WebGL and V8 performance. |
| 38 URL: http://oortonline.gl/#run | 39 URL: http://oortonline.gl/#run |
| 39 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html | 40 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html |
| 40 """ | 41 """ |
| 41 test = _OortOnlineMeasurement | 42 test = _OortOnlineMeasurement |
| 42 | 43 |
| 43 @classmethod | 44 @classmethod |
| 44 def Name(cls): | 45 def Name(cls): |
| 45 return 'oortonline' | 46 return 'oortonline' |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 @classmethod | 90 @classmethod |
| 90 def Name(cls): | 91 def Name(cls): |
| 91 return 'oortonline_tbm' | 92 return 'oortonline_tbm' |
| 92 | 93 |
| 93 @classmethod | 94 @classmethod |
| 94 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 95 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 95 if value.tir_label in ['Begin', 'End']: | 96 if value.tir_label in ['Begin', 'End']: |
| 96 return value.name.startswith('memory_') and 'v8_renderer' in value.name | 97 return value.name.startswith('memory_') and 'v8_renderer' in value.name |
| 97 else: | 98 else: |
| 98 return value.tir_label == 'Running' | 99 return value.tir_label == 'Running' |
| OLD | NEW |