| 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 measurements import rasterize_and_record_micro | 5 from measurements import rasterize_and_record_micro |
| 6 import page_sets | 6 import page_sets |
| 7 from telemetry import benchmark | 7 from telemetry import benchmark |
| 8 | 8 |
| 9 | 9 |
| 10 class _RasterizeAndRecordMicro(benchmark.Benchmark): | 10 class _RasterizeAndRecordMicro(benchmark.Benchmark): |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 @classmethod | 33 @classmethod |
| 34 def Name(cls): | 34 def Name(cls): |
| 35 return 'rasterize_and_record_micro' | 35 return 'rasterize_and_record_micro' |
| 36 | 36 |
| 37 def CreatePageTest(self, options): | 37 def CreatePageTest(self, options): |
| 38 return rasterize_and_record_micro.RasterizeAndRecordMicro( | 38 return rasterize_and_record_micro.RasterizeAndRecordMicro( |
| 39 options.start_wait_time, options.rasterize_repeat, | 39 options.start_wait_time, options.rasterize_repeat, |
| 40 options.record_repeat, options.timeout, options.report_detailed_results) | 40 options.record_repeat, options.timeout, options.report_detailed_results) |
| 41 | 41 |
| 42 |
| 42 # RasterizeAndRecord disabled on mac because of crbug.com/350684. | 43 # RasterizeAndRecord disabled on mac because of crbug.com/350684. |
| 43 # RasterizeAndRecord disabled on windows because of crbug.com/338057. | 44 # RasterizeAndRecord disabled on windows because of crbug.com/338057. |
| 44 @benchmark.Disabled('mac', 'win') | 45 @benchmark.Disabled('mac', 'win') |
| 45 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): | 46 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro): |
| 46 """Measures rasterize and record performance on the top 25 web pages. | 47 """Measures rasterize and record performance on the top 25 web pages. |
| 47 | 48 |
| 48 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 49 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 49 page_set = page_sets.Top25PageSet | 50 page_set = page_sets.Top25PageSet |
| 50 | 51 |
| 51 @classmethod | 52 @classmethod |
| 52 def Name(cls): | 53 def Name(cls): |
| 53 return 'rasterize_and_record_micro.top_25_smooth' | 54 return 'rasterize_and_record_micro.top_25_smooth' |
| 54 | 55 |
| 55 | 56 |
| 57 # RasterizeAndRecord disabled on mac because of crbug.com/350684. |
| 58 # RasterizeAndRecord disabled on windows because of crbug.com/338057. |
| 59 @benchmark.Disabled('mac', 'win') |
| 60 @benchmark.Disabled('reference') |
| 61 class RasterizeAndRecordMicroTop25WithSlimmingPaint(_RasterizeAndRecordMicro): |
| 62 """Measures rasterize and record performance with --enable-slimming-paint. |
| 63 |
| 64 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 65 page_set = page_sets.Top25PageSet |
| 66 |
| 67 def CustomizeBrowserOptions(self, options): |
| 68 options.AppendExtraBrowserArgs(['--enable-slimming-paint']) |
| 69 |
| 70 @classmethod |
| 71 def Name(cls): |
| 72 return 'rasterize_and_record_micro.top_25_slimming_paint_smooth' |
| 73 |
| 74 |
| 56 @benchmark.Disabled('mac', 'win') | 75 @benchmark.Disabled('mac', 'win') |
| 57 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): | 76 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): |
| 58 """Measures rasterize and record performance on the key mobile sites. | 77 """Measures rasterize and record performance on the key mobile sites. |
| 59 | 78 |
| 60 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 79 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 61 page_set = page_sets.KeyMobileSitesPageSet | 80 page_set = page_sets.KeyMobileSitesPageSet |
| 62 | 81 |
| 63 @classmethod | 82 @classmethod |
| 64 def Name(cls): | 83 def Name(cls): |
| 65 return 'rasterize_and_record_micro.key_mobile_sites_smooth' | 84 return 'rasterize_and_record_micro.key_mobile_sites_smooth' |
| (...skipping 18 matching lines...) Expand all Loading... |
| 84 """Measures rasterize and record performance on the Polymer cases. | 103 """Measures rasterize and record performance on the Polymer cases. |
| 85 | 104 |
| 86 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 105 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 87 | 106 |
| 88 @classmethod | 107 @classmethod |
| 89 def Name(cls): | 108 def Name(cls): |
| 90 return 'rasterize_and_record_micro.polymer' | 109 return 'rasterize_and_record_micro.polymer' |
| 91 | 110 |
| 92 def CreatePageSet(self, options): | 111 def CreatePageSet(self, options): |
| 93 return page_sets.PolymerPageSet(run_no_page_interactions=True) | 112 return page_sets.PolymerPageSet(run_no_page_interactions=True) |
| OLD | NEW |