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