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

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

Issue 1387933002: Adding performance benchmark for creating imagebitmap from imagedata (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enabling --enable-experimental-canvas-features on blink_perf Created 5 years, 2 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 | « third_party/WebKit/PerformanceTests/Canvas/createImageBitmapFromImageData.html ('k') | no next file » | 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 import os 5 import os
6 6
7 from core import perf_benchmark 7 from core import perf_benchmark
8 8
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry.core import util 10 from telemetry.core import util
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'blink_perf.js'), 'r') as f: 79 'blink_perf.js'), 'r') as f:
80 self._blink_perf_js = f.read() 80 self._blink_perf_js = f.read()
81 81
82 def WillNavigateToPage(self, page, tab): 82 def WillNavigateToPage(self, page, tab):
83 page.script_to_evaluate_on_commit = self._blink_perf_js 83 page.script_to_evaluate_on_commit = self._blink_perf_js
84 84
85 def CustomizeBrowserOptions(self, options): 85 def CustomizeBrowserOptions(self, options):
86 options.AppendExtraBrowserArgs([ 86 options.AppendExtraBrowserArgs([
87 '--js-flags=--expose_gc', 87 '--js-flags=--expose_gc',
88 '--enable-experimental-web-platform-features', 88 '--enable-experimental-web-platform-features',
89 '--disable-gesture-requirement-for-media-playback' 89 '--disable-gesture-requirement-for-media-playback',
90 '--enable-experimental-canvas-features'
chrishtr 2015/10/08 17:59:05 This is for all perf tests? That's bad because we
90 ]) 91 ])
91 if 'content-shell' in options.browser_type: 92 if 'content-shell' in options.browser_type:
92 options.AppendExtraBrowserArgs('--expose-internals-for-testing') 93 options.AppendExtraBrowserArgs('--expose-internals-for-testing')
93 94
94 def ValidateAndMeasurePage(self, page, tab, results): 95 def ValidateAndMeasurePage(self, page, tab, results):
95 tab.WaitForJavaScriptExpression('testRunner.isDone', 600) 96 tab.WaitForJavaScriptExpression('testRunner.isDone', 600)
96 97
97 log = tab.EvaluateJavaScript('document.getElementById("log").innerHTML') 98 log = tab.EvaluateJavaScript('document.getElementById("log").innerHTML')
98 99
99 for line in log.splitlines(): 100 for line in log.splitlines():
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 test = _BlinkPerfPywebsocketMeasurement 331 test = _BlinkPerfPywebsocketMeasurement
331 332
332 @classmethod 333 @classmethod
333 def Name(cls): 334 def Name(cls):
334 return 'blink_perf.pywebsocket' 335 return 'blink_perf.pywebsocket'
335 336
336 def CreateStorySet(self, options): 337 def CreateStorySet(self, options):
337 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket') 338 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket')
338 return CreateStorySetFromPath(path, SKIPPED_FILE, 339 return CreateStorySetFromPath(path, SKIPPED_FILE,
339 shared_page_state_class=_SharedPywebsocketPageState) 340 shared_page_state_class=_SharedPywebsocketPageState)
OLDNEW
« no previous file with comments | « third_party/WebKit/PerformanceTests/Canvas/createImageBitmapFromImageData.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698