OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 """Dummy benchmarks for the bisect FYI integration tests. | 4 """Dummy benchmarks for the bisect FYI integration tests. |
5 | 5 |
6 The number they produce aren't meant to represent any actual performance | 6 The number they produce aren't meant to represent any actual performance |
7 data of the browser. For more information about these dummy benchmarks, | 7 data of the browser. For more information about these dummy benchmarks, |
8 see: https://goo.gl/WvZiiW | 8 see: https://goo.gl/WvZiiW |
9 """ | 9 """ |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 | 37 |
38 class _DummyBenchmark(perf_benchmark.PerfBenchmark): | 38 class _DummyBenchmark(perf_benchmark.PerfBenchmark): |
39 page_set = dummy_story_set.DummyStorySet | 39 page_set = dummy_story_set.DummyStorySet |
40 | 40 |
41 | 41 |
42 class DummyBenchmarkOne(_DummyBenchmark): | 42 class DummyBenchmarkOne(_DummyBenchmark): |
43 """A low noise benchmark with mean=100 & std=1.""" | 43 """A low noise benchmark with mean=100 & std=1.""" |
44 | 44 |
45 def CreatePageTest(self, options): | 45 def CreatePageTest(self, options): |
46 return _DummyTest(140, 1) | 46 return _DummyTest(168, 1) |
47 | 47 |
48 @classmethod | 48 @classmethod |
49 def Name(cls): | 49 def Name(cls): |
50 return 'dummy_benchmark.stable_benchmark_1' | 50 return 'dummy_benchmark.stable_benchmark_1' |
51 | 51 |
52 | 52 |
53 class DummyBenchmarkTwo(_DummyBenchmark): | 53 class DummyBenchmarkTwo(_DummyBenchmark): |
54 """A noisy benchmark with mean=50 & std=20.""" | 54 """A noisy benchmark with mean=50 & std=20.""" |
55 | 55 |
56 def CreatePageTest(self, options): | 56 def CreatePageTest(self, options): |
57 return _DummyTest(50, 20) | 57 return _DummyTest(50, 20) |
58 | 58 |
59 @classmethod | 59 @classmethod |
60 def Name(cls): | 60 def Name(cls): |
61 return 'dummy_benchmark.noisy_benchmark_1' | 61 return 'dummy_benchmark.noisy_benchmark_1' |
OLD | NEW |