blob: 854b07a992908d3410816321f80f6a8c4d69a8b3 [file] [log] [blame]
# Copyright 2015 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 cache_temperature as cache_temperature_module
from telemetry.page import page
from telemetry import story
class OopifBasicPageSet(story.StorySet):
""" Basic set of pages used to measure performance of out-of-process
iframes.
"""
def __init__(self, cache_temperatures=None):
super(OopifBasicPageSet, self).__init__(
archive_data_file='data/oopif_basic.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
if cache_temperatures is None:
cache_temperatures = [cache_temperature_module.ANY]
urls = [
'http://www.cnn.com',
'http://www.ebay.com',
'http://booking.com',
# Disabled because it causes flaky runs https://crbug.com/522870
#'http://www.rei.com/',
'http://www.fifa.com/',
# Disabled because it is flaky on Windows and Android
#'http://arstechnica.com/',
'http://www.nationalgeographic.com/',
# Cross-site heavy! Enable them once they render without crashing.
#'http://www.nba.com/',
#'http://www.phonearena.com/',
#'http://slickdeals.net/',
#'http://www.163.com/',
]
for url in urls:
for temp in cache_temperatures:
self.AddStory(page.Page(url, self, cache_temperature=temp))