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

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

Issue 259623002: Remove FromDict from dorameo, indexeddb_perf, jsgamebench, kraken, octane, peacekeeper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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/indexeddb_perf.py ('k') | tools/perf/benchmarks/kraken.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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 Facebook's JSGameBench benchmark.""" 5 """Runs Facebook's JSGameBench benchmark."""
6 6
7 import os 7 import os
8 8
9 from metrics import power 9 from metrics import power
10 from telemetry import test 10 from telemetry import test
(...skipping 24 matching lines...) Expand all
35 result = int(tab.EvaluateJavaScript(js_get_results)) 35 result = int(tab.EvaluateJavaScript(js_get_results))
36 results.Add('Score', 'score (bigger is better)', result) 36 results.Add('Score', 'score (bigger is better)', result)
37 37
38 38
39 @test.Disabled('linux') # crbug.com/365237 39 @test.Disabled('linux') # crbug.com/365237
40 class Jsgamebench(test.Test): 40 class Jsgamebench(test.Test):
41 """Counts how many animating sprites can move around on the screen at once.""" 41 """Counts how many animating sprites can move around on the screen at once."""
42 test = _JsgamebenchMeasurement 42 test = _JsgamebenchMeasurement
43 43
44 def CreatePageSet(self, options): 44 def CreatePageSet(self, options):
45 return page_set.PageSet.FromDict({ 45 ps = page_set.PageSet(
46 'archive_data_file': '../page_sets/data/jsgamebench.json', 46 archive_data_file='../page_sets/data/jsgamebench.json',
47 'pages': [ 47 file_path=os.path.dirname(__file__))
48 { 'url': 'http://localhost/' } 48 ps.AddPageWithDefaultRunNavigate('http://localhost/')
49 ] 49 return ps
50 }, os.path.dirname(__file__))
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/indexeddb_perf.py ('k') | tools/perf/benchmarks/kraken.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698