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
3 # found in the LICENSE file.
5 from live_tests
import chrome_proxy_measurements
as measurements
6 from live_tests
import pagesets
7 from telemetry
import benchmark
10 class ChromeProxyLatency(benchmark
.Benchmark
):
12 test
= measurements
.ChromeProxyLatency
13 page_set
= pagesets
.Top20StorySet
17 return 'chrome_proxy_benchmark.latency.top_20'
20 class ChromeProxyLatencyDirect(benchmark
.Benchmark
):
21 tag
= 'latency_direct'
22 test
= measurements
.ChromeProxyLatencyDirect
23 page_set
= pagesets
.Top20StorySet
27 return 'chrome_proxy_benchmark.latency_direct.top_20'
30 class ChromeProxyDataSaving(benchmark
.Benchmark
):
32 test
= measurements
.ChromeProxyDataSaving
33 page_set
= pagesets
.Top20StorySet
37 return 'chrome_proxy_benchmark.data_saving.top_20'
40 class ChromeProxyDataSavingDirect(benchmark
.Benchmark
):
41 tag
= 'data_saving_direct'
42 test
= measurements
.ChromeProxyDataSavingDirect
43 page_set
= pagesets
.Top20StorySet
47 return 'chrome_proxy_benchmark.data_saving_direct.top_20'