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

Unified Diff: benchmark/benchmark.dart

Issue 1473563003: Cache the current working directory. (Closed) Base URL: git@github.com:dart-lang/path@master
Patch Set: Code review changes Created 5 years, 1 month 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 | « no previous file | lib/path.dart » ('j') | lib/path.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: benchmark/benchmark.dart
diff --git a/benchmark/benchmark.dart b/benchmark/benchmark.dart
index 03871d0cd662f49bbe6cfa68240f91d14acde266..8dc2690af439ef0edfd35715c8710b763c087f50 100644
--- a/benchmark/benchmark.dart
+++ b/benchmark/benchmark.dart
@@ -47,6 +47,10 @@ main(args) {
benchmark('toUri', context.toUri);
benchmark('prettyUri', context.prettyUri);
}
+
+ if (args.isEmpty || args.any((arg) => arg == 'current')) {
+ runBenchmark('current', (_) => path.current, [null]);
+ }
}
const COMMON_PATHS = const ['.', '..', 'out/ReleaseIA32/packages'];
« no previous file with comments | « no previous file | lib/path.dart » ('j') | lib/path.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698