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

Unified Diff: utils/tests/string_encoding/benchmark_runner.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/pub/yaml_test.dart ('k') | utils/tests/string_encoding/dunit.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/string_encoding/benchmark_runner.dart
diff --git a/utils/tests/string_encoding/benchmark_runner.dart b/utils/tests/string_encoding/benchmark_runner.dart
index 225a1dc0445c7d3439afb5681e9ad3c1c04f3ce1..7af2ead095d1324a741b3bc8636dc968a09f2460 100644
--- a/utils/tests/string_encoding/benchmark_runner.dart
+++ b/utils/tests/string_encoding/benchmark_runner.dart
@@ -104,8 +104,7 @@ class TestReport {
}
int resultsMeanNanos() =>
- (BlockSample._totalTime(results) /
- BlockSample._totalCount(results)).toInt();
+ BlockSample._totalTime(results) ~/ BlockSample._totalCount(results);
int resultsWorstNanos() {
BlockSample worst = worstBlock(results);
@@ -199,7 +198,7 @@ class Runner {
static bool runTest(String testId) {
Options opts = new Options();
return opts.arguments.length == 0 ||
- opts.arguments.some(_(String id) => id == testId);
+ opts.arguments.any((String id) => id == testId);
}
}
« no previous file with comments | « utils/tests/pub/yaml_test.dart ('k') | utils/tests/string_encoding/dunit.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698