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

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

Issue 335923007: [Telemetry] Make our Enabled/Disabled annotations match what the bots run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yar (yet another rebase) 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/blink_perf.py ('k') | tools/perf/benchmarks/canvasmark.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 Browsermark CSS, DOM, WebGL, JS, resize and page load benchmarks. 5 """Runs Browsermark CSS, DOM, WebGL, JS, resize and page load benchmarks.
6 6
7 Browsermark benchmark suite have five test groups: 7 Browsermark benchmark suite have five test groups:
8 a) CSS group: measures your browsers 2D and 3D performance, and finally executes 8 a) CSS group: measures your browsers 2D and 3D performance, and finally executes
9 CSS Crunch test 9 CSS Crunch test
10 b) DOM group: measures variety of areas, like how well your browser traverse in 10 b) DOM group: measures variety of areas, like how well your browser traverse in
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 """ 38 """
39 tab.ExecuteJavaScript(js_start_test) 39 tab.ExecuteJavaScript(js_start_test)
40 tab.WaitForJavaScriptExpression( 40 tab.WaitForJavaScriptExpression(
41 'window.location.pathname.indexOf("results") != -1', 600) 41 'window.location.pathname.indexOf("results") != -1', 600)
42 result = int(tab.EvaluateJavaScript( 42 result = int(tab.EvaluateJavaScript(
43 'document.getElementsByClassName("score")[0].innerHTML')) 43 'document.getElementsByClassName("score")[0].innerHTML'))
44 results.Add('Score', 'score', result) 44 results.Add('Score', 'score', result)
45 45
46 46
47 @benchmark.Disabled
47 class Browsermark(benchmark.Benchmark): 48 class Browsermark(benchmark.Benchmark):
48 """Browsermark suite tests CSS, DOM, resize, page load, WebGL and JS.""" 49 """Browsermark suite tests CSS, DOM, resize, page load, WebGL and JS."""
49 test = _BrowsermarkMeasurement 50 test = _BrowsermarkMeasurement
50 def CreatePageSet(self, options): 51 def CreatePageSet(self, options):
51 ps = page_set.PageSet( 52 ps = page_set.PageSet(
52 file_path=os.path.abspath(__file__), 53 file_path=os.path.abspath(__file__),
53 archive_data_file='../page_sets/data/browsermark.json', 54 archive_data_file='../page_sets/data/browsermark.json',
54 make_javascript_deterministic=False) 55 make_javascript_deterministic=False)
55 ps.AddPageWithDefaultRunNavigate('http://browsermark.rightware.com/tests/') 56 ps.AddPageWithDefaultRunNavigate('http://browsermark.rightware.com/tests/')
56 return ps 57 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/blink_perf.py ('k') | tools/perf/benchmarks/canvasmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698