OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 library observe.test.benchmark.setup_path_benchmark; |
| 5 |
| 6 import 'package:observe/observe.dart'; |
| 7 import 'setup_observation_benchmark_base.dart'; |
| 8 import 'test_path_observable.dart'; |
| 9 |
| 10 class SetupPathBenchmark extends SetupObservationBenchmarkBase { |
| 11 final PropertyPath path = new PropertyPath('foo.bar.baz'); |
| 12 |
| 13 SetupPathBenchmark(int objectCount, String config) |
| 14 : super('SetupPathBenchmark:$objectCount:$config', objectCount, config); |
| 15 |
| 16 @override |
| 17 TestPathObservable newObject() => new TestPathObservable(1); |
| 18 |
| 19 @override |
| 20 PathObserver newObserver(TestPathObservable obj) => |
| 21 new PathObserver(obj, path)..open(() {}); |
| 22 } |
OLD | NEW |