| OLD | NEW |
| 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 import os | 5 import os |
| 6 | 6 |
| 7 from core import path_util | 7 from core import path_util |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 | 9 |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 @classmethod | 310 @classmethod |
| 311 def Name(cls): | 311 def Name(cls): |
| 312 return 'blink_perf.xml_http_request' | 312 return 'blink_perf.xml_http_request' |
| 313 | 313 |
| 314 def CreateStorySet(self, options): | 314 def CreateStorySet(self, options): |
| 315 path = os.path.join(BLINK_PERF_BASE_DIR, 'XMLHttpRequest') | 315 path = os.path.join(BLINK_PERF_BASE_DIR, 'XMLHttpRequest') |
| 316 return CreateStorySetFromPath(path, SKIPPED_FILE) | 316 return CreateStorySetFromPath(path, SKIPPED_FILE) |
| 317 | 317 |
| 318 | 318 |
| 319 # Disabled on Windows and ChromeOS due to https://crbug.com/521887 | 319 # Disabled on Windows and ChromeOS due to https://crbug.com/521887 |
| 320 @benchmark.Disabled('win', 'chromeos') | 320 #@benchmark.Disabled('win', 'chromeos') |
| 321 # Disabling on remaining platforms due to heavy flake https://crbug.com/646938 |
| 322 @benchmark.Disabled('all') |
| 321 class BlinkPerfPywebsocket(perf_benchmark.PerfBenchmark): | 323 class BlinkPerfPywebsocket(perf_benchmark.PerfBenchmark): |
| 322 """The blink_perf.pywebsocket tests measure turn-around-time of 10MB | 324 """The blink_perf.pywebsocket tests measure turn-around-time of 10MB |
| 323 send/receive for XHR, Fetch API and WebSocket. We might ignore < 10% | 325 send/receive for XHR, Fetch API and WebSocket. We might ignore < 10% |
| 324 regressions, because the tests are noisy and such regressions are | 326 regressions, because the tests are noisy and such regressions are |
| 325 often unreproducible (https://crbug.com/549017). | 327 often unreproducible (https://crbug.com/549017). |
| 326 """ | 328 """ |
| 327 tag = 'pywebsocket' | 329 tag = 'pywebsocket' |
| 328 test = _BlinkPerfMeasurement | 330 test = _BlinkPerfMeasurement |
| 329 | 331 |
| 330 @classmethod | 332 @classmethod |
| 331 def Name(cls): | 333 def Name(cls): |
| 332 return 'blink_perf.pywebsocket' | 334 return 'blink_perf.pywebsocket' |
| 333 | 335 |
| 334 def CreateStorySet(self, options): | 336 def CreateStorySet(self, options): |
| 335 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket') | 337 path = os.path.join(BLINK_PERF_BASE_DIR, 'Pywebsocket') |
| 336 return CreateStorySetFromPath( | 338 return CreateStorySetFromPath( |
| 337 path, SKIPPED_FILE, | 339 path, SKIPPED_FILE, |
| 338 shared_page_state_class=_SharedPywebsocketPageState) | 340 shared_page_state_class=_SharedPywebsocketPageState) |
| 339 | 341 |
| 340 @classmethod | 342 @classmethod |
| 341 def ShouldDisable(cls, possible_browser): | 343 def ShouldDisable(cls, possible_browser): |
| 342 return cls.IsSvelte(possible_browser) # http://crbug.com/551950 | 344 return cls.IsSvelte(possible_browser) # http://crbug.com/551950 |
| OLD | NEW |