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

Unified 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: rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/typical_25.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/page_cycler_v2.py
diff --git a/tools/perf/benchmarks/page_cycler_v2.py b/tools/perf/benchmarks/page_cycler_v2.py
new file mode 100644
index 0000000000000000000000000000000000000000..f6654e994992fef44df1fc38765510abe4ad4f1d
--- /dev/null
+++ b/tools/perf/benchmarks/page_cycler_v2.py
@@ -0,0 +1,43 @@
+# Copyright 2016 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.
+
+"""The page cycler v2.
+
+For details, see design doc:
+https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0
+"""
+
+from core import perf_benchmark
+import page_sets
+
+from telemetry.page import cache_temperature
+from telemetry.timeline import tracing_category_filter
+from telemetry.web_perf import timeline_based_measurement
+
+class _PageCyclerV2(perf_benchmark.PerfBenchmark):
+ def CreateTimelineBasedMeasurementOptions(self):
+ cat_filter = tracing_category_filter.TracingCategoryFilter(
+ filter_string='*,blink.console,navigation,blink.user_timing,loading')
+
+ tbm_options = timeline_based_measurement.Options(
+ overhead_level=cat_filter)
+ tbm_options.SetTimelineBasedMetric('firstPaintMetric')
+ return tbm_options
+
+class PageCyclerTypical25(_PageCyclerV2):
+ """Page load time benchmark for a 25 typical web pages.
+
+ Designed to represent typical, not highly optimized or highly popular web
+ sites. Runs against pages recorded in June, 2014.
+ """
+ options = {'pageset_repeat': 3}
+
+ @classmethod
+ def Name(cls):
+ return 'page_cycler_v2.typical_25'
+
+ def CreateStorySet(self, options):
+ return page_sets.Typical25PageSet(run_no_page_interactions=True,
+ cache_temperatures=[
+ cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM])
« no previous file with comments | « no previous file | tools/perf/page_sets/typical_25.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698