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

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

Issue 102543005: Disable spaceport on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 | no next file » | 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 spaceport.io's PerfMarks benchmark.""" 5 """Runs spaceport.io's PerfMarks benchmark."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 import sys 9 import sys
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 results.Add(trace, 'objects (bigger is better)', float(result_dict[key]), 50 results.Add(trace, 'objects (bigger is better)', float(result_dict[key]),
51 chart_name=chart, data_type='unimportant') 51 chart_name=chart, data_type='unimportant')
52 results.Add('Score', 'objects (bigger is better)', 52 results.Add('Score', 'objects (bigger is better)',
53 [float(x) for x in result_dict.values()]) 53 [float(x) for x in result_dict.values()])
54 54
55 55
56 class Spaceport(test.Test): 56 class Spaceport(test.Test):
57 """spaceport.io's PerfMarks benchmark.""" 57 """spaceport.io's PerfMarks benchmark."""
58 test = _SpaceportMeasurement 58 test = _SpaceportMeasurement
59 59
60 enabled = sys.platform != 'darwin' 60 # crbug.com/166703: This test frequently times out on Windows.
61 enabled = sys.platform != 'darwin' and not sys.platform.startswith('win')
61 62
62 def CreatePageSet(self, options): 63 def CreatePageSet(self, options):
63 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', 64 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test',
64 'data', 'third_party', 'spaceport') 65 'data', 'third_party', 'spaceport')
65 return page_set.PageSet.FromDict( 66 return page_set.PageSet.FromDict(
66 {'pages': [{'url': 'file://index.html'}]}, 67 {'pages': [{'url': 'file://index.html'}]},
67 spaceport_dir) 68 spaceport_dir)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698