普通文本  |  67行  |  1.83 KB

# 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 measurements import startup
import page_sets
from telemetry import benchmark


@benchmark.Enabled('has tabs')
@benchmark.Disabled('snowleopard') # crbug.com/336913
class StartupColdBlankPage(benchmark.Benchmark):
  tag = 'cold'
  test = startup.Startup
  page_set = page_sets.BlankPageSet
  options = {'cold': True,
             'pageset_repeat': 5}


@benchmark.Enabled('has tabs')
class StartupWarmBlankPage(benchmark.Benchmark):
  tag = 'warm'
  test = startup.Startup
  page_set = page_sets.BlankPageSet
  options = {'warm': True,
             'pageset_repeat': 20}


@benchmark.Disabled  # crbug.com/336913
class StartupColdTheme(benchmark.Benchmark):
  tag = 'theme_cold'
  test = startup.Startup
  page_set = page_sets.BlankPageSet
  generated_profile_archive = 'theme_profile.zip'
  options = {'cold': True,
             'pageset_repeat': 5}


@benchmark.Disabled
class StartupWarmTheme(benchmark.Benchmark):
  tag = 'theme_warm'
  test = startup.Startup
  page_set = page_sets.BlankPageSet
  generated_profile_archive = 'theme_profile.zip'
  options = {'warm': True,
             'pageset_repeat': 20}


@benchmark.Disabled  # crbug.com/336913
class StartupColdManyExtensions(benchmark.Benchmark):
  tag = 'many_extensions_cold'
  test = startup.Startup
  page_set = page_sets.BlankPageSet
  generated_profile_archive = 'many_extensions_profile.zip'
  options = {'cold': True,
             'pageset_repeat': 5}


@benchmark.Disabled
class StartupWarmManyExtensions(benchmark.Benchmark):
  tag = 'many_extensions_warm'
  test = startup.Startup
  page_set = page_sets.BlankPageSet
  generated_profile_archive = 'many_extensions_profile.zip'
  options = {'warm': True,
             'pageset_repeat': 20}