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

Side by Side Diff: tools/perf/page_sets/service_worker_micro_benchmark.py

Issue 806513002: Move make_javascript_deterministic to UserStory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 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
OLDNEW
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 from telemetry.page import page as page 5 from telemetry.page import page as page
6 from telemetry.page import page_set as page_set 6 from telemetry.page import page_set as page_set
7 7
8 8
9 archive_data_file_path = 'data/service_worker_micro_benchmark.json' 9 archive_data_file_path = 'data/service_worker_micro_benchmark.json'
10 10
11 11
12 class ServiceWorkerBenchmarkPage(page.Page): 12 class ServiceWorkerBenchmarkPage(page.Page):
13 """Page for workload to measure some specific functions in JS""" 13 """Page for workload to measure some specific functions in JS"""
14 14
15 def RunNavigateSteps(self, action_runner): 15 def RunNavigateSteps(self, action_runner):
16 action_runner.NavigateToPage(self) 16 action_runner.NavigateToPage(self)
17 action_runner.WaitForJavaScriptCondition('window.done') 17 action_runner.WaitForJavaScriptCondition('window.done')
18 18
19 19
20 class ServiceWorkerMicroBenchmarkPageSet(page_set.PageSet): 20 class ServiceWorkerMicroBenchmarkPageSet(page_set.PageSet):
21 """Page set for micro benchmarking of each functions with ServiceWorker""" 21 """Page set for micro benchmarking of each functions with ServiceWorker"""
22 22
23 def __init__(self): 23 def __init__(self):
24 super(ServiceWorkerMicroBenchmarkPageSet, self).__init__( 24 super(ServiceWorkerMicroBenchmarkPageSet, self).__init__(
25 archive_data_file=archive_data_file_path, 25 archive_data_file=archive_data_file_path,
26 make_javascript_deterministic=False,
27 bucket=page_set.PUBLIC_BUCKET) 26 bucket=page_set.PUBLIC_BUCKET)
28 27
29 # pylint: disable=C0301 28 # pylint: disable=C0301
30 # The code of localhost:8091 is placed in 29 # The code of localhost:8091 is placed in
31 # https://github.com/coonsta/Service-Worker-Performance 30 # https://github.com/coonsta/Service-Worker-Performance
32 # but currently the following is used: 31 # but currently the following is used:
33 # https://github.com/amiq11/Service-Worker-Performance/tree/follow_spec_and_ many_registration 32 # https://github.com/amiq11/Service-Worker-Performance/tree/follow_spec_and_ many_registration
34 # (rev: 3238098ea0225f53dab2f69f7406db8a2712dbf9) 33 # (rev: 3238098ea0225f53dab2f69f7406db8a2712dbf9)
35 # This will be merged into the main repository. 34 # This will be merged into the main repository.
36 # pylint: enable=C0301 35 # pylint: enable=C0301
37 # Why: to measure performance of many concurrent fetches 36 # Why: to measure performance of many concurrent fetches
38 self.AddUserStory(ServiceWorkerBenchmarkPage( 37 self.AddUserStory(ServiceWorkerBenchmarkPage(
39 'http://localhost:8091/index.html', self)) 38 'http://localhost:8091/index.html', self,
39 make_javascript_deterministic=False))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/service_worker.py ('k') | tools/perf/page_sets/top_desktop_sites_2012Q3.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698