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

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

Issue 435043003: Update Pica WPR and replace 'pica' benchmark with 'polymer_load.pica' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/perf/benchmarks/polymer_load.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import page_sets
6 from telemetry import benchmark
7 from telemetry.page import page_measurement
8 from telemetry.value import scalar
9
10 class _PicaMeasurement(page_measurement.PageMeasurement):
11 def CustomizeBrowserOptions(self, options):
12 # Needed for native custom elements (document.register)
13 options.AppendExtraBrowserArgs(
14 '--enable-experimental-web-platform-features')
15
16 def MeasurePage(self, _, tab, results):
17 result = int(tab.EvaluateJavaScript('__polymer_ready_time'))
18 results.AddValue(scalar.ScalarValue(
19 results.current_page, 'Total', 'ms', result))
20
21
22 class Pica(benchmark.Benchmark):
23 test = _PicaMeasurement
24 page_set = page_sets.PicaPageSet
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/polymer_load.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698