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

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

Issue 1060563005: Extend the BigJs benchmark: add a YouTube page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 class BigJsPageSet(page_set_module.PageSet): 7 class BigJsPageSet(page_set_module.PageSet):
8 8
9 """ Sites which load and run big JavaScript files.""" 9 """ Sites which load and run big JavaScript files."""
10 10
11 def __init__(self): 11 def __init__(self):
12 super(BigJsPageSet, self).__init__( 12 super(BigJsPageSet, self).__init__(
13 archive_data_file='data/big_js.json', 13 archive_data_file='data/big_js.json',
14 bucket=page_set_module.PARTNER_BUCKET, 14 bucket=page_set_module.PARTNER_BUCKET,
15 user_agent_type='desktop') 15 user_agent_type='desktop')
16 16
17 # Page sets with only one page don't work well, since we end up reusing a 17 # www.foo.com is a dummy page to make it easier to run only one interesting
18 # page at a time. You can't just run the interesting page on its own: Page
19 # sets with only one page don't work well, since we end up reusing a
18 # renderer all the time and it keeps its memory caches alive (see 20 # renderer all the time and it keeps its memory caches alive (see
19 # crbug.com/403735). Add a dummy second page here. 21 # crbug.com/403735).
Sami 2015/04/07 11:07:53 Hmm, interesting, I didn't know about this! Do you
marja 2015/04/07 11:59:58 It's generally probably not a problem since most o
Sami 2015/04/07 12:59:05 Gotcha, thanks.
20 urls_list = [ 22 urls_list = [
21 'http://beta.unity3d.com/jonas/DT2/', 23 'http://beta.unity3d.com/jonas/DT2/',
22 'http://www.foo.com', 24 'https://www.youtube.com/watch?v=IJNR2EpS0jw',
25 'http://www.foo.com',
23 ] 26 ]
24 for url in urls_list: 27 for url in urls_list:
25 self.AddUserStory(page_module.Page(url, self)) 28 self.AddUserStory(page_module.Page(url, self))
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/data/big_js.json » ('j') | tools/perf/page_sets/data/big_js.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698