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

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

Issue 1973953002: [PCv2] add benchmark page_cycler_v2.typical_25 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « no previous file | tools/perf/page_sets/typical_25.py » ('j') | tools/perf/page_sets/typical_25.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """The page cycler v2.
6
7 For details, see design doc:
8 https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0
9 """
10
11 from core import perf_benchmark
12 import page_sets
13
14 from telemetry.page import cache_temperature
15 from telemetry.timeline import tracing_category_filter
16 from telemetry.web_perf import timeline_based_measurement
17
18 class _PageCyclerV2(perf_benchmark.PerfBenchmark):
19 @classmethod
20 def Name(cls):
nednguyen 2016/05/13 03:43:22 There is no need to name this "hidden" benchmark
kouhei (in TOK) 2016/05/18 03:55:54 Done.
21 return 'page_cycler_v2'
22
23 def CreateTimelineBasedMeasurementOptions(self):
24 cat_filter = tracing_category_filter.TracingCategoryFilter(
25 filter_string='-*,blink.console,navigation,blink.user_timing,loading')
26
27 tbm_options = timeline_based_measurement.Options(
28 overhead_level=cat_filter)
29 tbm_options.SetTimelineBasedMetric('firstPaintMetric')
30 return tbm_options
31
32 class PageCyclerTypical25(_PageCyclerV2):
33 """Page load time benchmark for a 25 typical web pages.
34
35 Designed to represent typical, not highly optimized or highly popular web
36 sites. Runs against pages recorded in June, 2014.
37 """
38 options = {'pageset_repeat': 3}
39
40 @classmethod
41 def Name(cls):
42 return 'page_cycler_v2.typical_25'
43
44 def CreateStorySet(self, options):
45 return page_sets.Typical25PageSet(run_no_page_interactions=True,
46 cache_temperatures=[cache_temperature.PCV1_COLD, cache_temperature.PCV1_ WARM])
nednguyen 2016/05/13 03:43:22 nits: this should go to a new line. If the PRESUBM
kouhei (in TOK) 2016/05/18 03:55:54 Done.
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/typical_25.py » ('j') | tools/perf/page_sets/typical_25.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698