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

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

Issue 1767413002: [Telemetry] Cleanup some unused variables in page_sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 import story 6 from telemetry import story
7 7
8 8
9 archive_data_file_path = 'data/service_worker_micro_benchmark.json'
10
11
12 class ServiceWorkerBenchmarkPage(page.Page): 9 class ServiceWorkerBenchmarkPage(page.Page):
13 """Page for workload to measure some specific functions in JS""" 10 """Page for workload to measure some specific functions in JS"""
14 11
15 def RunNavigateSteps(self, action_runner): 12 def RunNavigateSteps(self, action_runner):
16 super(ServiceWorkerBenchmarkPage, self).RunNavigateSteps(action_runner) 13 super(ServiceWorkerBenchmarkPage, self).RunNavigateSteps(action_runner)
17 action_runner.WaitForJavaScriptCondition('window.done') 14 action_runner.WaitForJavaScriptCondition('window.done')
18 15
19 16
20 class ServiceWorkerMicroBenchmarkPageSet(story.StorySet): 17 class ServiceWorkerMicroBenchmarkPageSet(story.StorySet):
21 """Page set for micro benchmarking of each functions with ServiceWorker""" 18 """Page set for micro benchmarking of each functions with ServiceWorker"""
22 19
23 def __init__(self): 20 def __init__(self):
24 super(ServiceWorkerMicroBenchmarkPageSet, self).__init__( 21 super(ServiceWorkerMicroBenchmarkPageSet, self).__init__(
25 archive_data_file=archive_data_file_path, 22 archive_data_file='data/service_worker_micro_benchmark.json',
26 cloud_storage_bucket=story.PUBLIC_BUCKET) 23 cloud_storage_bucket=story.PUBLIC_BUCKET)
27 24
28 # pylint: disable=line-too-long 25 # pylint: disable=line-too-long
29 # The latest code of localhost:8091 is from: 26 # The latest code of localhost:8091 is from:
30 # https://github.com/horo-t/Service-Worker-Performance/tree/fix-flakyness 27 # https://github.com/horo-t/Service-Worker-Performance/tree/fix-flakyness
31 # (rev: 0cc35c2398526665399ca99fe53147ff81101408) 28 # (rev: 0cc35c2398526665399ca99fe53147ff81101408)
32 # TODO(falken): House the code in GoogleChrome's GitHub repository. 29 # TODO(falken): House the code in GoogleChrome's GitHub repository.
33 # pylint: enable=C0301 30 # pylint: enable=C0301
34 # Why: to measure performance of many concurrent fetches 31 # Why: to measure performance of many concurrent fetches
35 self.AddStory(ServiceWorkerBenchmarkPage( 32 self.AddStory(ServiceWorkerBenchmarkPage(
36 'http://localhost:8091/index.html', self, 33 'http://localhost:8091/index.html', self,
37 make_javascript_deterministic=False)) 34 make_javascript_deterministic=False))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/pathological_mobile_sites.py ('k') | tools/perf/page_sets/simple_mobile_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698