| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from core import perf_benchmark | 5 from core import perf_benchmark |
| 6 | 6 |
| 7 import ct_benchmarks_util | 7 import ct_benchmarks_util |
| 8 from measurements import rasterize_and_record_micro | 8 from measurements import rasterize_and_record_micro |
| 9 import page_sets | 9 import page_sets |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 @benchmark.Disabled('mac', 'win', | 49 @benchmark.Disabled('mac', 'win', |
| 50 'android') # http://crbug.com/610018 | 50 'android') # http://crbug.com/610018 |
| 51 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): | 51 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): |
| 52 """Measures rasterize and record performance on the top 25 web pages. | 52 """Measures rasterize and record performance on the top 25 web pages. |
| 53 | 53 |
| 54 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 54 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 55 page_set = page_sets.Top25PageSet | 55 page_set = page_sets.Top25PageSet |
| 56 | 56 |
| 57 @classmethod | 57 @classmethod |
| 58 def Name(cls): | 58 def Name(cls): |
| 59 return 'rasterize_and_record_micro.top_25_smooth' | 59 return 'rasterize_and_record_micro.top_25' |
| 60 | 60 |
| 61 | 61 |
| 62 @benchmark.Disabled('mac', 'win', | 62 @benchmark.Disabled('mac', 'win', 'android') # http://crbug.com/531597 |
| 63 'android') # http://crbug.com/531597 | |
| 64 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): | 63 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): |
| 65 """Measures rasterize and record performance on the key mobile sites. | 64 """Measures rasterize and record performance on the key mobile sites. |
| 66 | 65 |
| 67 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 66 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 68 page_set = page_sets.KeyMobileSitesPageSet | 67 page_set = page_sets.KeyMobileSitesPageSet |
| 69 | 68 |
| 70 @classmethod | 69 @classmethod |
| 71 def Name(cls): | 70 def Name(cls): |
| 72 return 'rasterize_and_record_micro.key_mobile_sites_smooth' | 71 return 'rasterize_and_record_micro.key_mobile_sites' |
| 73 | 72 |
| 74 | 73 |
| 75 @benchmark.Disabled('mac', 'win', 'android') # http://crbug.com/610424 | 74 @benchmark.Disabled('mac', 'win', 'android') # http://crbug.com/610424 |
| 76 class RasterizeAndRecordMicroKeySilkCases(_RasterizeAndRecordMicro): | 75 class RasterizeAndRecordMicroKeySilkCases(_RasterizeAndRecordMicro): |
| 77 """Measures rasterize and record performance on the silk sites. | 76 """Measures rasterize and record performance on the silk sites. |
| 78 | 77 |
| 79 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 78 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 80 | 79 |
| 81 @classmethod | 80 @classmethod |
| 82 def Name(cls): | 81 def Name(cls): |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) | 128 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) |
| 130 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | 129 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 131 | 130 |
| 132 @classmethod | 131 @classmethod |
| 133 def ProcessCommandLineArgs(cls, parser, args): | 132 def ProcessCommandLineArgs(cls, parser, args): |
| 134 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | 133 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 135 | 134 |
| 136 def CreateStorySet(self, options): | 135 def CreateStorySet(self, options): |
| 137 return page_sets.CTPageSet( | 136 return page_sets.CTPageSet( |
| 138 options.urls_list, options.user_agent, options.archive_data_file) | 137 options.urls_list, options.user_agent, options.archive_data_file) |
| OLD | NEW |