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

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

Issue 809393002: Added support for improvement_direction to relevant values, which is propogated to chartjson. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linter issues Created 5 years, 11 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
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 import os 5 import os
6 6
7 from telemetry import benchmark 7 from telemetry import benchmark
8 from telemetry import page as page_module 8 from telemetry import page as page_module
9 from telemetry.core import util 9 from telemetry.core import util
10 from telemetry.page import page_set 10 from telemetry.page import page_set
11 from telemetry.page import page_test 11 from telemetry.page import page_test
12 from telemetry.value import improvement_direction
12 from telemetry.value import list_of_scalar_values 13 from telemetry.value import list_of_scalar_values
13 14
14 15
15 BLINK_PERF_BASE_DIR = os.path.join(util.GetChromiumSrcDir(), 16 BLINK_PERF_BASE_DIR = os.path.join(util.GetChromiumSrcDir(),
16 'third_party', 'WebKit', 'PerformanceTests') 17 'third_party', 'WebKit', 'PerformanceTests')
17 SKIPPED_FILE = os.path.join(BLINK_PERF_BASE_DIR, 'Skipped') 18 SKIPPED_FILE = os.path.join(BLINK_PERF_BASE_DIR, 'Skipped')
18 19
19 20
20 def CreatePageSetFromPath(path, skipped_file): 21 def CreatePageSetFromPath(path, skipped_file):
21 assert os.path.exists(path) 22 assert os.path.exists(path)
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 239
239 # This benchmark is for local testing, doesn't need to run on bots. 240 # This benchmark is for local testing, doesn't need to run on bots.
240 @benchmark.Disabled() 241 @benchmark.Disabled()
241 class BlinkPerfXMLHttpRequest(benchmark.Benchmark): 242 class BlinkPerfXMLHttpRequest(benchmark.Benchmark):
242 tag = 'xml_http_request' 243 tag = 'xml_http_request'
243 test = _BlinkPerfMeasurement 244 test = _BlinkPerfMeasurement
244 245
245 def CreatePageSet(self, options): 246 def CreatePageSet(self, options):
246 path = os.path.join(BLINK_PERF_BASE_DIR, 'XMLHttpRequest') 247 path = os.path.join(BLINK_PERF_BASE_DIR, 'XMLHttpRequest')
247 return CreatePageSetFromPath(path, SKIPPED_FILE) 248 return CreatePageSetFromPath(path, SKIPPED_FILE)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/dom_perf.py » ('j') | tools/telemetry/telemetry/value/scalar.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698