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

Side by Side Diff: tools/perf/benchmarks/kraken.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/jsgamebench.py ('k') | tools/perf/benchmarks/octane.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 Mozilla's Kraken JavaScript benchmark.""" 5 """Runs Mozilla's Kraken JavaScript 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 results.Add(key, 'ms', result_dict[key], data_type='unimportant') 47 results.Add(key, 'ms', result_dict[key], data_type='unimportant')
48 total += _Mean(result_dict[key]) 48 total += _Mean(result_dict[key])
49 results.Add('Total', 'ms', total) 49 results.Add('Total', 'ms', total)
50 50
51 51
52 class Kraken(test.Test): 52 class Kraken(test.Test):
53 """Mozilla's Kraken JavaScript benchmark.""" 53 """Mozilla's Kraken JavaScript benchmark."""
54 test = _KrakenMeasurement 54 test = _KrakenMeasurement
55 55
56 def CreatePageSet(self, options): 56 def CreatePageSet(self, options):
57 return page_set.PageSet.FromDict({ 57 ps = page_set.PageSet(
58 'archive_data_file': '../page_sets/data/kraken.json', 58 archive_data_file='../page_sets/data/kraken.json',
59 'pages': [ 59 file_path=os.path.abspath(__file__))
60 { 'url': 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html' } 60 ps.AddPageWithDefaultRunNavigate(
61 ] 61 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html')
62 }, os.path.abspath(__file__)) 62 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/jsgamebench.py ('k') | tools/perf/benchmarks/octane.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698