OLD | NEW |
| (Empty) |
1 library lexer_perf; | |
2 | |
3 import '_perf.dart'; | |
4 import 'package:angular/core/parser/lexer.dart'; | |
5 | |
6 main() { | |
7 Lexer lexer = new Lexer(); | |
8 time('ident', () => | |
9 lexer.call('ctrl foo baz ctrl.foo ctrl.bar ctrl.baz')); | |
10 time('ident-path', () => | |
11 lexer.call('a.b a.b.c a.b.c.d a.b.c.d.e.f')); | |
12 time('num', () => | |
13 lexer.call('1 23 34 456 12341234 12351235')); | |
14 time('num-double', () => | |
15 lexer.call('.0 .1 .12 0.123 0.1234')); | |
16 time('string', () => | |
17 lexer.call("'quick brown dog and fox say what'")); | |
18 time('string-escapes', () => | |
19 lexer.call("quick '\\' brown \u1234 dog and fox\n\rsay what'")); | |
20 } | |
OLD | NEW |