Commit 636ee5e2 authored by nednguyen's avatar nednguyen Committed by Commit bot

[Telemetry] Change rasterize_and_record_micro to use top_25_pages page set.

Add top_25_smooth.json as archive_data_file for top_25_smooth page set.
top_25_pages page set uses top_25.json.

BUG=418375

Review URL: https://codereview.chromium.org/966283002

Cr-Commit-Position: refs/heads/master@{#318711}
parent ff07480e
......@@ -46,7 +46,7 @@ class RasterizeAndRecordMicroTop25(_RasterizeAndRecordMicro):
"""Measures rasterize and record performance on the top 25 web pages.
http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
page_set = page_sets.Top25SmoothPageSet
page_set = page_sets.Top25PageSet
@classmethod
def Name(cls):
......
{
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"archives": {
"top_25_003.wpr": [
"Facebook"
],
"top_25_001.wpr": [
"https://plus.google.com/110031535020051778989/posts"
],
"top_25_002.wpr": [
"https://www.google.com/search?q=cats&tbm=isch"
],
"top_25_000.wpr": [
"https://www.google.com/#hl=en&q=barack+obama",
"https://mail.google.com/mail/",
"https://www.google.com/calendar/",
"https://drive.google.com",
"https://docs.google.com/document/d/1X-IKNjtEnx-WW5JIKRLsyhz5sbsat3mfTpAPUSX3_s4/view",
"http://www.youtube.com",
"http://googlewebmastercentral.blogspot.com/",
"http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks-for-august-2012/",
"http://www.facebook.com/barackobama",
"http://www.linkedin.com/in/linustorvalds",
"http://en.wikipedia.org/wiki/Wikipedia",
"https://twitter.com/katyperry",
"http://pinterest.com",
"http://espn.go.com",
"http://news.yahoo.com",
"http://www.cnn.com",
"http://www.weather.com/weather/right-now/Mountain+View+CA+94043",
"http://www.amazon.com",
"http://www.ebay.com",
"http://games.yahoo.com",
"http://booking.com",
"http://answers.yahoo.com",
"http://sports.yahoo.com/",
"http://techcrunch.com"
]
}
}
\ No newline at end of file
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page
from telemetry.page import page_set
from page_sets import top_pages
class Top25PageSet(page_set.PageSet):
""" Page set consists of top 25 pages with only navigation actions. """
def __init__(self):
super(Top25PageSet, self).__init__(
user_agent_type='desktop',
archive_data_file='data/top_25.json',
bucket=page_set.PARTNER_BUCKET)
self.AddUserStory(top_pages.GoogleWebSearchPage(self))
self.AddUserStory(top_pages.GmailPage(self))
self.AddUserStory(top_pages.GoogleCalendarPage(self))
self.AddUserStory(top_pages.GoogleImageSearchPage(self))
self.AddUserStory(top_pages.GoogleDocPage(self))
self.AddUserStory(top_pages.GooglePlusPage(self))
self.AddUserStory(top_pages.YoutubePage(self))
self.AddUserStory(top_pages.BlogspotPage(self))
self.AddUserStory(top_pages.WordpressPage(self))
self.AddUserStory(top_pages.FacebookPage(self))
self.AddUserStory(top_pages.LinkedinPage(self))
self.AddUserStory(top_pages.WikipediaPage(self))
self.AddUserStory(top_pages.TwitterPage(self))
self.AddUserStory(top_pages.PinterestPage(self))
self.AddUserStory(top_pages.ESPNPage(self))
self.AddUserStory(top_pages.WeatherPage(self))
self.AddUserStory(top_pages.YahooGamesPage(self))
other_urls = [
# Why: #1 news worldwide (Alexa global)
'http://news.yahoo.com',
# Why: #2 news worldwide
'http://www.cnn.com',
# Why: #1 world commerce website by visits; #3 commerce in the US by
# time spent
'http://www.amazon.com',
# Why: #1 commerce website by time spent by users in US
'http://www.ebay.com',
# Why: #1 Alexa recreation
'http://booking.com',
# Why: #1 Alexa reference
'http://answers.yahoo.com',
# Why: #1 Alexa sports
'http://sports.yahoo.com/',
# Why: top tech blog
'http://techcrunch.com'
]
for url in other_urls:
self.AddUserStory(page.Page(url, self))
......@@ -93,7 +93,7 @@ class Top25SmoothPageSet(page_set_module.PageSet):
def __init__(self):
super(Top25SmoothPageSet, self).__init__(
user_agent_type='desktop',
archive_data_file='data/top_25.json',
archive_data_file='data/top_25_smooth.json',
bucket=page_set_module.PARTNER_BUCKET)
self.AddUserStory(_CreatePageClassWithSmoothInteractions(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment