blob: 73fc28c4e4df3e88347370766f87237c54ffab09 [file] [log] [blame]
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from core import perf_benchmark
from measurements import rasterize_and_record_micro
import page_sets
from telemetry import benchmark
class _RasterizeAndRecordMicro(perf_benchmark.PerfBenchmark):
@classmethod
def AddBenchmarkCommandLineArgs(cls, parser):
parser.add_option('--start-wait-time', type='float',
default=2,
help='Wait time before the benchmark is started '
'(must be long enough to load all content)')
parser.add_option('--rasterize-repeat', type='int',
default=100,
help='Repeat each raster this many times. Increase '
'this value to reduce variance.')
parser.add_option('--record-repeat', type='int',
default=100,
help='Repeat each record this many times. Increase '
'this value to reduce variance.')
parser.add_option('--timeout', type='int',
default=120,
help='The length of time to wait for the micro '
'benchmark to finish, expressed in seconds.')
parser.add_option('--report-detailed-results',
action='store_true',
help='Whether to report additional detailed results.')
@classmethod
def Name(cls):
return 'rasterize_and_record_micro'
def CreatePageTest(self, options):
return rasterize_and_record_micro.RasterizeAndRecordMicro(
options.start_wait_time, options.rasterize_repeat,
options.record_repeat, options.timeout, options.report_detailed_results)
@benchmark.Info(
emails=['vmpstr@chromium.org', 'wkorman@chromium.org'],
component='Internals>Compositing>Rasterization')
class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro):
"""Measures rasterize and record performance on the top 25 web pages.
http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
page_set = page_sets.StaticTop25PageSet
@classmethod
def Name(cls):
return 'rasterize_and_record_micro.top_25'
@benchmark.Info(
emails=['vmpstr@chromium.org', 'wkorman@chromium.org'],
component='Internals>Compositing>Rasterization')
class RasterizeAndRecordMicroPartialInvalidation(_RasterizeAndRecordMicro):
"""Measures rasterize and record performance for partial inval. on big pages.
http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
page_set = page_sets.PartialInvalidationCasesPageSet
@classmethod
def Name(cls):
return 'rasterize_and_record_micro.partial_invalidation'