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

Side by Side Diff: packages/observe/benchmark/object_benchmark.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 4 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
OLDNEW
(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.object_benchmark;
5
6 import 'observation_benchmark_base.dart';
7 import 'test_observable.dart';
8
9 class ObjectBenchmark extends ObservationBenchmarkBase {
10 ObjectBenchmark(int objectCount, int mutationCount, String config) : super(
11 'ObjectBenchmark:$objectCount:$mutationCount:$config', objectCount,
12 mutationCount, config);
13
14 @override
15 int mutateObject(TestObservable obj) {
16 // Modify the first 5 properties.
17 obj.a++;
18 obj.b++;
19 obj.c++;
20 obj.d++;
21 obj.e++;
22 // Return # of modifications.
23 return 5;
24 }
25
26 @override
27 TestObservable newObject() => new TestObservable();
28 }
OLDNEW
« no previous file with comments | « packages/observe/benchmark/index.html ('k') | packages/observe/benchmark/observable_list_benchmark.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698