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

Side by Side Diff: pkg/kernel/test/uint31_pair_map_bench.dart

Issue 2561723003: Merge kernel closure conversion into the Dart SDK (Closed)
Patch Set: Remove path constraint Created 4 years 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
« no previous file with comments | « pkg/kernel/test/type_unification_test.dart ('k') | pkg/kernel/testcases/closures/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import 'package:kernel/type_propagation/canonicalizer.dart'; 1 import 'package:kernel/type_propagation/canonicalizer.dart';
2 2
3 main() { 3 main() {
4 Stopwatch watch = new Stopwatch()..start(); 4 Stopwatch watch = new Stopwatch()..start();
5 5
6 const int lowBiasKeys = 100; 6 const int lowBiasKeys = 100;
7 const int highBiasKeys = 10000; 7 const int highBiasKeys = 10000;
8 const int noBiasKeys = 1000; 8 const int noBiasKeys = 1000;
9 9
10 Uint31PairMap map; 10 Uint31PairMap map;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 int rightBiasTime = watch.elapsedMicroseconds; 52 int rightBiasTime = watch.elapsedMicroseconds;
53 53
54 print(''' 54 print('''
55 bias.none: ${formatTime(noBiasTime)} 55 bias.none: ${formatTime(noBiasTime)}
56 bias.left: ${formatTime(leftBiasTime)} 56 bias.left: ${formatTime(leftBiasTime)}
57 bias.right: ${formatTime(rightBiasTime)} 57 bias.right: ${formatTime(rightBiasTime)}
58 '''); 58 ''');
59 } 59 }
60 60
61
62 String formatTime(int microseconds) { 61 String formatTime(int microseconds) {
63 double seconds = microseconds / 1000000.0; 62 double seconds = microseconds / 1000000.0;
64 return '$seconds s'; 63 return '$seconds s';
65 } 64 }
OLDNEW
« no previous file with comments | « pkg/kernel/test/type_unification_test.dart ('k') | pkg/kernel/testcases/closures/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698