| 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 from measurements import rasterize_and_record_micro | 7 from measurements import rasterize_and_record_micro |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 """Measures rasterize and record performance on the top 25 web pages. | 49 """Measures rasterize and record performance on the top 25 web pages. |
| 50 | 50 |
| 51 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 51 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 52 page_set = page_sets.Top25PageSet | 52 page_set = page_sets.Top25PageSet |
| 53 | 53 |
| 54 @classmethod | 54 @classmethod |
| 55 def Name(cls): | 55 def Name(cls): |
| 56 return 'rasterize_and_record_micro.top_25_smooth' | 56 return 'rasterize_and_record_micro.top_25_smooth' |
| 57 | 57 |
| 58 | 58 |
| 59 # RasterizeAndRecord disabled on mac because of crbug.com/350684. | |
| 60 # RasterizeAndRecord disabled on windows because of crbug.com/338057. | |
| 61 # Slimming paint version disabled on android because of crbug.com/472590. | |
| 62 @benchmark.Disabled('mac', 'win', 'android') | |
| 63 @benchmark.Disabled('reference') | |
| 64 class RasterizeAndRecordMicroTop25WithSlimmingPaint(_RasterizeAndRecordMicro): | |
| 65 """Measures rasterize and record performance with --enable-slimming-paint. | |
| 66 | |
| 67 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | |
| 68 page_set = page_sets.Top25PageSet | |
| 69 | |
| 70 def SetExtraBrowserOptions(self, options): | |
| 71 options.AppendExtraBrowserArgs(['--enable-slimming-paint']) | |
| 72 | |
| 73 @classmethod | |
| 74 def Name(cls): | |
| 75 return 'rasterize_and_record_micro.top_25_slimming_paint_smooth' | |
| 76 | |
| 77 | |
| 78 @benchmark.Disabled('mac', 'win') | 59 @benchmark.Disabled('mac', 'win') |
| 79 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): | 60 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro): |
| 80 """Measures rasterize and record performance on the key mobile sites. | 61 """Measures rasterize and record performance on the key mobile sites. |
| 81 | 62 |
| 82 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 63 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 83 page_set = page_sets.KeyMobileSitesPageSet | 64 page_set = page_sets.KeyMobileSitesPageSet |
| 84 | 65 |
| 85 @classmethod | 66 @classmethod |
| 86 def Name(cls): | 67 def Name(cls): |
| 87 return 'rasterize_and_record_micro.key_mobile_sites_smooth' | 68 return 'rasterize_and_record_micro.key_mobile_sites_smooth' |
| (...skipping 18 matching lines...) Expand all Loading... |
| 106 """Measures rasterize and record performance on the Polymer cases. | 87 """Measures rasterize and record performance on the Polymer cases. |
| 107 | 88 |
| 108 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 89 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 109 | 90 |
| 110 @classmethod | 91 @classmethod |
| 111 def Name(cls): | 92 def Name(cls): |
| 112 return 'rasterize_and_record_micro.polymer' | 93 return 'rasterize_and_record_micro.polymer' |
| 113 | 94 |
| 114 def CreateStorySet(self, options): | 95 def CreateStorySet(self, options): |
| 115 return page_sets.PolymerPageSet(run_no_page_interactions=True) | 96 return page_sets.PolymerPageSet(run_no_page_interactions=True) |
| OLD | NEW |