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

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

Issue 797133003: Kill PageSet.AddPageWithDefaultRunNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « tools/perf/benchmarks/robohornet_pro.py ('k') | tools/perf/benchmarks/speedometer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Runs spaceport.io's PerfMarks benchmark.""" 5 """Runs spaceport.io's PerfMarks benchmark."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 9
10 from telemetry import benchmark 10 from telemetry import benchmark
11 from telemetry import page as page_module
11 from telemetry.core import util 12 from telemetry.core import util
12 from telemetry.page import page_set 13 from telemetry.page import page_set
13 from telemetry.page import page_test 14 from telemetry.page import page_test
14 from telemetry.value import list_of_scalar_values 15 from telemetry.value import list_of_scalar_values
15 from telemetry.value import scalar 16 from telemetry.value import scalar
16 17
17 DESCRIPTIONS = { 18 DESCRIPTIONS = {
18 'canvasDrawImageFullClear': 19 'canvasDrawImageFullClear':
19 'Using a canvas element to render. Bitmaps are blitted to the canvas ' 20 'Using a canvas element to render. Bitmaps are blitted to the canvas '
20 'using the "drawImage" function and the canvas is fully cleared at ' 21 'using the "drawImage" function and the canvas is fully cleared at '
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 # crbug.com/166703: This test frequently times out on Windows. 96 # crbug.com/166703: This test frequently times out on Windows.
96 @benchmark.Disabled('mac', 'win') 97 @benchmark.Disabled('mac', 'win')
97 class Spaceport(benchmark.Benchmark): 98 class Spaceport(benchmark.Benchmark):
98 """spaceport.io's PerfMarks benchmark.""" 99 """spaceport.io's PerfMarks benchmark."""
99 test = _SpaceportMeasurement 100 test = _SpaceportMeasurement
100 101
101 def CreatePageSet(self, options): 102 def CreatePageSet(self, options):
102 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', 103 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test',
103 'data', 'third_party', 'spaceport') 104 'data', 'third_party', 'spaceport')
104 ps = page_set.PageSet(file_path=spaceport_dir) 105 ps = page_set.PageSet(file_path=spaceport_dir)
105 ps.AddPageWithDefaultRunNavigate('file://index.html') 106 ps.AddUserStory(page_module.Page('file://index.html', ps, ps.base_dir))
106 return ps 107 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/robohornet_pro.py ('k') | tools/perf/benchmarks/speedometer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698