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

Side by Side Diff: tools/perf/benchmarks/benchmark_smoke_unittest.py

Issue 1782123002: [Telemetry] Remove new_tab benchmark & related page sets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update benchmark_smoke_unittest 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
« no previous file with comments | « no previous file | tools/perf/benchmarks/new_tab.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 """Run the first page of one benchmark for every module. 5 """Run the first page of one benchmark for every module.
6 6
7 Only benchmarks that have a composable measurement are included. 7 Only benchmarks that have a composable measurement are included.
8 Ideally this test would be comprehensive, however, running one page 8 Ideally this test would be comprehensive, however, running one page
9 of every benchmark would run impractically long. 9 of every benchmark would run impractically long.
10 """ 10 """
11 11
12 import os 12 import os
13 import sys 13 import sys
14 import unittest 14 import unittest
15 15
16 from telemetry import benchmark as benchmark_module 16 from telemetry import benchmark as benchmark_module
17 from telemetry.core import discover 17 from telemetry.core import discover
18 from telemetry.testing import options_for_unittests 18 from telemetry.testing import options_for_unittests
19 from telemetry.testing import progress_reporter 19 from telemetry.testing import progress_reporter
20 20
21 from benchmarks import image_decoding 21 from benchmarks import image_decoding
22 from benchmarks import indexeddb_perf 22 from benchmarks import indexeddb_perf
23 from benchmarks import jetstream 23 from benchmarks import jetstream
24 from benchmarks import kraken 24 from benchmarks import kraken
25 from benchmarks import memory 25 from benchmarks import memory
26 from benchmarks import new_tab
27 from benchmarks import octane 26 from benchmarks import octane
28 from benchmarks import rasterize_and_record_micro 27 from benchmarks import rasterize_and_record_micro
29 from benchmarks import repaint 28 from benchmarks import repaint
30 from benchmarks import spaceport 29 from benchmarks import spaceport
31 from benchmarks import speedometer 30 from benchmarks import speedometer
32 from benchmarks import sunspider 31 from benchmarks import sunspider
33 from benchmarks import text_selection 32 from benchmarks import text_selection
34 33
35 34
36 def SmokeTestGenerator(benchmark): 35 def SmokeTestGenerator(benchmark):
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 self.assertEqual(0, SinglePageBenchmark().Run(options), 72 self.assertEqual(0, SinglePageBenchmark().Run(options),
74 msg='Failed: %s' % benchmark) 73 msg='Failed: %s' % benchmark)
75 74
76 return BenchmarkSmokeTest 75 return BenchmarkSmokeTest
77 76
78 77
79 # The list of benchmark modules to be excluded from our smoke tests. 78 # The list of benchmark modules to be excluded from our smoke tests.
80 _BLACK_LIST_TEST_MODULES = { 79 _BLACK_LIST_TEST_MODULES = {
81 image_decoding, # Always fails on Mac10.9 Tests builder. 80 image_decoding, # Always fails on Mac10.9 Tests builder.
82 indexeddb_perf, # Always fails on Win7 & Android Tests builder. 81 indexeddb_perf, # Always fails on Win7 & Android Tests builder.
83 new_tab, # Fails fairly often on the Linux Tests builder, crbug.com/535664
84 octane, # Often fails & take long time to timeout on cq bot. 82 octane, # Often fails & take long time to timeout on cq bot.
85 rasterize_and_record_micro, # Always fails on cq bot. 83 rasterize_and_record_micro, # Always fails on cq bot.
86 repaint, # Often fails & takes long time to timeout on cq bot. 84 repaint, # Often fails & takes long time to timeout on cq bot.
87 spaceport, # Takes 451 seconds. 85 spaceport, # Takes 451 seconds.
88 speedometer, # Takes 101 seconds. 86 speedometer, # Takes 101 seconds.
89 jetstream, # Take 206 seconds. 87 jetstream, # Take 206 seconds.
90 text_selection, # Always fails on cq bot. 88 text_selection, # Always fails on cq bot.
91 memory # Flaky on bots, crbug.com/513767 89 memory # Flaky on bots, crbug.com/513767
92 } 90 }
93 91
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 147
150 # TODO(bashi): Remove once crrev.com/1266833004 is landed. 148 # TODO(bashi): Remove once crrev.com/1266833004 is landed.
151 if benchmark.Name() == 'memory.blink_memory_mobile': 149 if benchmark.Name() == 'memory.blink_memory_mobile':
152 method._disabled_strings.add('android') 150 method._disabled_strings.add('android')
153 151
154 setattr(BenchmarkSmokeTest, benchmark.Name(), method) 152 setattr(BenchmarkSmokeTest, benchmark.Name(), method)
155 153
156 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) 154 suite.addTest(BenchmarkSmokeTest(benchmark.Name()))
157 155
158 return suite 156 return suite
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/new_tab.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698