| 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 28 matching lines...) Expand all Loading... |
| 39 return 'rasterize_and_record_micro' | 39 return 'rasterize_and_record_micro' |
| 40 | 40 |
| 41 def CreatePageTest(self, options): | 41 def CreatePageTest(self, options): |
| 42 return rasterize_and_record_micro.RasterizeAndRecordMicro( | 42 return rasterize_and_record_micro.RasterizeAndRecordMicro( |
| 43 options.start_wait_time, options.rasterize_repeat, | 43 options.start_wait_time, options.rasterize_repeat, |
| 44 options.record_repeat, options.timeout, options.report_detailed_results) | 44 options.record_repeat, options.timeout, options.report_detailed_results) |
| 45 | 45 |
| 46 | 46 |
| 47 # RasterizeAndRecord disabled on mac because of crbug.com/350684. | 47 # RasterizeAndRecord disabled on mac because of crbug.com/350684. |
| 48 # RasterizeAndRecord disabled on windows because of crbug.com/338057. | 48 # RasterizeAndRecord disabled on windows because of crbug.com/338057. |
| 49 @benchmark.Disabled('mac', 'win', | 49 @benchmark.Disabled('mac', 'win') |
| 50 'linux') # http://crbug.com/597391 | |
| 51 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): | 50 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): |
| 52 """Measures rasterize and record performance on the top 25 web pages. | 51 """Measures rasterize and record performance on the top 25 web pages. |
| 53 | 52 |
| 54 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 53 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 55 page_set = page_sets.Top25PageSet | 54 page_set = page_sets.Top25PageSet |
| 56 | 55 |
| 57 @classmethod | 56 @classmethod |
| 58 def Name(cls): | 57 def Name(cls): |
| 59 return 'rasterize_and_record_micro.top_25_smooth' | 58 return 'rasterize_and_record_micro.top_25_smooth' |
| 60 | 59 |
| 61 | 60 |
| 62 @benchmark.Disabled('mac', 'win', | 61 @benchmark.Disabled('mac', 'win', |
| 63 'android', # http://crbug.com/531597 | 62 'android') # http://crbug.com/531597 |
| 64 'linux') # http://crbug.com/597391 | |
| 65 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): | 63 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): |
| 66 """Measures rasterize and record performance on the key mobile sites. | 64 """Measures rasterize and record performance on the key mobile sites. |
| 67 | 65 |
| 68 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 66 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 69 page_set = page_sets.KeyMobileSitesPageSet | 67 page_set = page_sets.KeyMobileSitesPageSet |
| 70 | 68 |
| 71 @classmethod | 69 @classmethod |
| 72 def Name(cls): | 70 def Name(cls): |
| 73 return 'rasterize_and_record_micro.key_mobile_sites_smooth' | 71 return 'rasterize_and_record_micro.key_mobile_sites_smooth' |
| 74 | 72 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) | 114 _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(parser) |
| 117 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | 115 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 118 | 116 |
| 119 @classmethod | 117 @classmethod |
| 120 def ProcessCommandLineArgs(cls, parser, args): | 118 def ProcessCommandLineArgs(cls, parser, args): |
| 121 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | 119 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 122 | 120 |
| 123 def CreateStorySet(self, options): | 121 def CreateStorySet(self, options): |
| 124 return page_sets.CTPageSet( | 122 return page_sets.CTPageSet( |
| 125 options.urls_list, options.user_agent, options.archive_data_file) | 123 options.urls_list, options.user_agent, options.archive_data_file) |
| OLD | NEW |