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

Side by Side Diff: utils/tests/string_encoding/benchmark_runner.dart

Issue 12794002: Move Options to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/standalone/io/test_runner_test.dart ('k') | utils/tests/string_encoding/utf8_benchmarks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698