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

Side by Side Diff: tools/perf/benchmarks/scirra.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/polymer_load.py ('k') | tools/perf/benchmarks/service_worker.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 """Scirra WebGL and Canvas2D rendering benchmark suite. 5 """Scirra WebGL and Canvas2D rendering benchmark suite.
6 6
7 The Scirra WebGL performance test measures the number of 2D triangles 7 The Scirra WebGL performance test measures the number of 2D triangles
8 represented onscreen when the animation reaches the 30 FPS threshold. 8 represented onscreen when the animation reaches the 30 FPS threshold.
9 """ 9 """
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 return false; 43 return false;
44 } 44 }
45 }; 45 };
46 IsTestDone(); 46 IsTestDone();
47 """ % {'tickcount': tickcount, 'fps': fps, 'object_count': object_count} 47 """ % {'tickcount': tickcount, 'fps': fps, 'object_count': object_count}
48 tab.WaitForJavaScriptExpression(js_is_done, 300) 48 tab.WaitForJavaScriptExpression(js_is_done, 300)
49 total = int(tab.EvaluateJavaScript('window.sprites')) 49 total = int(tab.EvaluateJavaScript('window.sprites'))
50 results.Add('Count', 'count', total) 50 results.Add('Count', 'count', total)
51 51
52 52
53 @benchmark.Disabled
53 class ScirraBenchmark(benchmark.Benchmark): 54 class ScirraBenchmark(benchmark.Benchmark):
54 """WebGL and Canvas2D rendering benchmark suite.""" 55 """WebGL and Canvas2D rendering benchmark suite."""
55 test = _ScirraMeasurement 56 test = _ScirraMeasurement
56 def CreatePageSet(self, options): 57 def CreatePageSet(self, options):
57 ps = page_set.PageSet( 58 ps = page_set.PageSet(
58 archive_data_file='../page_sets/data/scirra.json', 59 archive_data_file='../page_sets/data/scirra.json',
59 make_javascript_deterministic=False, 60 make_javascript_deterministic=False,
60 file_path=os.path.abspath(__file__)) 61 file_path=os.path.abspath(__file__))
61 for url in ('http://www.scirra.com/labs/renderperf3/', 62 for url in ('http://www.scirra.com/labs/renderperf3/',
62 'http://www.scirra.com/demos/c2/renderperfgl/', 63 'http://www.scirra.com/demos/c2/renderperfgl/',
63 'http://www.scirra.com/demos/c2/renderperf2d/'): 64 'http://www.scirra.com/demos/c2/renderperf2d/'):
64 ps.AddPageWithDefaultRunNavigate(url) 65 ps.AddPageWithDefaultRunNavigate(url)
65 return ps 66 return ps
66 67
67 68
68 69
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/polymer_load.py ('k') | tools/perf/benchmarks/service_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698