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

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

Issue 258603004: Get rid of FromDict from robohornet_pro, scirra, spaceport, sunspider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 | « no previous file | tools/perf/benchmarks/scirra.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 Microsoft's RoboHornet Pro benchmark.""" 5 """Runs Microsoft's RoboHornet Pro 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 22 matching lines...) Expand all
33 self._power_metric.AddResults(tab, results) 33 self._power_metric.AddResults(tab, results)
34 34
35 result = int(tab.EvaluateJavaScript('stopTime - startTime')) 35 result = int(tab.EvaluateJavaScript('stopTime - startTime'))
36 results.Add('Total', 'ms', result) 36 results.Add('Total', 'ms', result)
37 37
38 38
39 class RobohornetPro(test.Test): 39 class RobohornetPro(test.Test):
40 test = _RobohornetProMeasurement 40 test = _RobohornetProMeasurement
41 41
42 def CreatePageSet(self, options): 42 def CreatePageSet(self, options):
43 return page_set.PageSet.FromDict({ 43 ps = page_set.PageSet(
44 'archive_data_file': '../page_sets/data/robohornet_pro.json', 44 archive_data_file='../page_sets/data/robohornet_pro.json',
45 # Measurement require use of real Date.now() for measurement. 45 # Measurement require use of real Date.now() for measurement.
46 'make_javascript_deterministic': False, 46 make_javascript_deterministic=False,
47 'pages': [ 47 file_path=os.path.abspath(__file__))
48 { 'url': 48 ps.AddPageWithDefaultRunNavigate(
49 'http://ie.microsoft.com/testdrive/performance/robohornetpro/' } 49 'http://ie.microsoft.com/testdrive/performance/robohornetpro/')
50 ] 50 return ps
51 }, os.path.abspath(__file__))
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/scirra.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698