OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 part of BenchmarkTests; |
| 6 |
5 /** | 7 /** |
6 * The results of a single block of tests (count times run, overall time). | 8 * The results of a single block of tests (count times run, overall time). |
7 */ | 9 */ |
8 class BlockSample { | 10 class BlockSample { |
9 BlockSample(this.count, this.durationNanos); | 11 BlockSample(this.count, this.durationNanos); |
10 int count; | 12 int count; |
11 int durationNanos; | 13 int durationNanos; |
12 | 14 |
13 static int _totalCount(List<BlockSample> samples) => | 15 static int _totalCount(List<BlockSample> samples) => |
14 _sum(samples, int (BlockSample s) => s.count); | 16 _sum(samples, int (BlockSample s) => s.count); |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 _(TestReport r) => r.printReport() : reportHandler; | 451 _(TestReport r) => r.printReport() : reportHandler; |
450 } | 452 } |
451 | 453 |
452 Function _reportHandler; | 454 Function _reportHandler; |
453 Function get reportHandler => _reportHandler; | 455 Function get reportHandler => _reportHandler; |
454 int _warmup; | 456 int _warmup; |
455 int _targetTimeMs; | 457 int _targetTimeMs; |
456 int _minSampleTimeMs; | 458 int _minSampleTimeMs; |
457 int _blocksize; | 459 int _blocksize; |
458 } | 460 } |
OLD | NEW |