| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 collections | 5 import collections |
| 6 import page_sets | 6 import page_sets |
| 7 import re | 7 import re |
| 8 | 8 |
| 9 from core import perf_benchmark | 9 from core import perf_benchmark |
| 10 | 10 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 The page set is a benchmark page that generates many concurrent requests | 180 The page set is a benchmark page that generates many concurrent requests |
| 181 handled by a service worker that does respondWith(new Response()). The test | 181 handled by a service worker that does respondWith(new Response()). The test |
| 182 result is the response times. | 182 result is the response times. |
| 183 """ | 183 """ |
| 184 test = _ServiceWorkerMicroBenchmarkMeasurement | 184 test = _ServiceWorkerMicroBenchmarkMeasurement |
| 185 page_set = page_sets.ServiceWorkerMicroBenchmarkPageSet | 185 page_set = page_sets.ServiceWorkerMicroBenchmarkPageSet |
| 186 | 186 |
| 187 @classmethod | 187 @classmethod |
| 188 def Name(cls): | 188 def Name(cls): |
| 189 return 'service_worker.service_worker_micro_benchmark' | 189 return 'service_worker.service_worker_micro_benchmark' |
| 190 |
| 191 @classmethod |
| 192 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 193 return (possible_browser.browser_type == 'reference' and |
| 194 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| OLD | NEW |