Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(998)

Side by Side Diff: tools/perf/benchmarks/rasterize_and_record_micro.py

Issue 637153002: telemetry: Remove command line args from page test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Suppress pylint E1003 Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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):
11 @classmethod
12 def AddBenchmarkCommandLineArgs(cls, parser):
13 parser.add_option('--start-wait-time', type='float',
14 default=2,
15 help='Wait time before the benchmark is started '
16 '(must be long enought to load all content)')
17 parser.add_option('--rasterize-repeat', type='int',
18 default=100,
19 help='Repeat each raster this many times. Increase '
20 'this value to reduce variance.')
21 parser.add_option('--record-repeat', type='int',
22 default=100,
23 help='Repeat each record this many times. Increase '
24 'this value to reduce variance.')
25 parser.add_option('--timeout', type='int',
26 default=120,
27 help='The length of time to wait for the micro '
28 'benchmark to finish, expressed in seconds.')
29 parser.add_option('--report-detailed-results',
30 action='store_true',
31 help='Whether to report additional detailed results.')
32
33 def CreatePageTest(self, options):
34 return rasterize_and_record_micro.RasterizeAndRecordMicro(
35 options.start_wait_time, options.rasterize_repeat,
36 options.record_repeat, options.timeout, options.report_detailed_results)
37
10 # RasterizeAndRecord disabled on mac because of crbug.com/350684. 38 # RasterizeAndRecord disabled on mac because of crbug.com/350684.
11 # RasterizeAndRecord disabled on windows because of crbug.com/338057. 39 # RasterizeAndRecord disabled on windows because of crbug.com/338057.
12 @benchmark.Disabled('mac', 'win') 40 @benchmark.Disabled('mac', 'win')
13 class RasterizeAndRecordMicroTop25(benchmark.Benchmark): 41 class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro):
14 """Measures rasterize and record performance on the top 25 web pages. 42 """Measures rasterize and record performance on the top 25 web pages.
15 43
16 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 44 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
17 test = rasterize_and_record_micro.RasterizeAndRecordMicro
18 page_set = page_sets.Top25SmoothPageSet 45 page_set = page_sets.Top25SmoothPageSet
19 46
20 47
21 @benchmark.Disabled('mac', 'win') 48 @benchmark.Disabled('mac', 'win')
22 class RasterizeAndRecordMicroKeyMobileSites(benchmark.Benchmark): 49 class RasterizeAndRecordMicroKeyMobileSites(_RasterizeAndRecordMicro):
23 """Measures rasterize and record performance on the key mobile sites. 50 """Measures rasterize and record performance on the key mobile sites.
24 51
25 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 52 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
26 test = rasterize_and_record_micro.RasterizeAndRecordMicro
27 page_set = page_sets.KeyMobileSitesPageSet 53 page_set = page_sets.KeyMobileSitesPageSet
28 54
29 55
30 @benchmark.Disabled('mac', 'win') 56 @benchmark.Disabled('mac', 'win')
31 class RasterizeAndRecordMicroKeySilkCases(benchmark.Benchmark): 57 class RasterizeAndRecordMicroKeySilkCases(_RasterizeAndRecordMicro):
32 """Measures rasterize and record performance on the silk sites. 58 """Measures rasterize and record performance on the silk sites.
33 59
34 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 60 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
35 test = rasterize_and_record_micro.RasterizeAndRecordMicro
36 page_set = page_sets.KeySilkCasesPageSet 61 page_set = page_sets.KeySilkCasesPageSet
37 62
38 63
39 @benchmark.Enabled('android') 64 @benchmark.Enabled('android')
40 class RasterizeAndRecordMicroPolymer(benchmark.Benchmark): 65 class RasterizeAndRecordMicroPolymer(_RasterizeAndRecordMicro):
41 """Measures rasterize and record performance on the Polymer cases. 66 """Measures rasterize and record performance on the Polymer cases.
42 67
43 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 68 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
44 test = rasterize_and_record_micro.RasterizeAndRecordMicro
45 page_set = page_sets.PolymerPageSet 69 page_set = page_sets.PolymerPageSet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698