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

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

Issue 337603005: Rename telemetry.test.Test to telemetry.benchmark.Benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « tools/perf/benchmarks/kraken.py ('k') | tools/perf/benchmarks/media.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 2013 The Chromium Authors. All rights reserved. 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 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 a Google Maps performance test. 5 """Runs a Google Maps performance test.
6 Rerforms several common navigation actions on the map (pan, zoom, rotate)""" 6 Rerforms several common navigation actions on the map (pan, zoom, rotate)"""
7 7
8 import os 8 import os
9 import re 9 import re
10 10
11 from telemetry import test 11 from telemetry import benchmark
12 from telemetry.core import util 12 from telemetry.core import util
13 from telemetry.page import page_measurement 13 from telemetry.page import page_measurement
14 from telemetry.page import page as page_module 14 from telemetry.page import page as page_module
15 from telemetry.page import page_set as page_set_module 15 from telemetry.page import page_set as page_set_module
16 # pylint: disable=W0401,W0614 16 # pylint: disable=W0401,W0614
17 from telemetry.page.actions.all_page_actions import * 17 from telemetry.page.actions.all_page_actions import *
18 from telemetry.value import scalar 18 from telemetry.value import scalar
19 19
20 20
21 class _MapsMeasurement(page_measurement.PageMeasurement): 21 class _MapsMeasurement(page_measurement.PageMeasurement):
(...skipping 13 matching lines...) Expand all
35 super(MapsPage, self).__init__( 35 super(MapsPage, self).__init__(
36 url='http://localhost:10020/tracker.html', 36 url='http://localhost:10020/tracker.html',
37 page_set=page_set, 37 page_set=page_set,
38 base_dir=base_dir) 38 base_dir=base_dir)
39 39
40 def RunNavigateSteps(self, action_runner): 40 def RunNavigateSteps(self, action_runner):
41 action_runner.NavigateToPage(self) 41 action_runner.NavigateToPage(self)
42 action_runner.WaitForJavaScriptCondition('window.testDone') 42 action_runner.WaitForJavaScriptCondition('window.testDone')
43 43
44 44
45 @test.Disabled 45 @benchmark.Disabled
46 class MapsBenchmark(test.Test): 46 class MapsBenchmark(benchmark.Benchmark):
47 """Basic Google Maps benchmarks.""" 47 """Basic Google Maps benchmarks."""
48 test = _MapsMeasurement 48 test = _MapsMeasurement
49 49
50 def CreatePageSet(self, options): 50 def CreatePageSet(self, options):
51 page_set_path = os.path.join( 51 page_set_path = os.path.join(
52 util.GetChromiumSrcDir(), 'tools', 'perf', 'page_sets') 52 util.GetChromiumSrcDir(), 'tools', 'perf', 'page_sets')
53 ps = page_set_module.PageSet( 53 ps = page_set_module.PageSet(
54 archive_data_file='data/maps.json', 54 archive_data_file='data/maps.json',
55 make_javascript_deterministic=False, 55 make_javascript_deterministic=False,
56 file_path=page_set_path) 56 file_path=page_set_path)
57 ps.AddPage(MapsPage(ps, ps.base_dir)) 57 ps.AddPage(MapsPage(ps, ps.base_dir))
58 return ps 58 return ps
59 59
60 class MapsNoVsync(MapsBenchmark): 60 class MapsNoVsync(MapsBenchmark):
61 """Runs the Google Maps benchmark with Vsync disabled""" 61 """Runs the Google Maps benchmark with Vsync disabled"""
62 tag = 'novsync' 62 tag = 'novsync'
63 63
64 def CustomizeBrowserOptions(self, options): 64 def CustomizeBrowserOptions(self, options):
65 options.AppendExtraBrowserArgs('--disable-gpu-vsync') 65 options.AppendExtraBrowserArgs('--disable-gpu-vsync')
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/kraken.py ('k') | tools/perf/benchmarks/media.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698