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

Side by Side Diff: third_party/pkg/angular/perf/lexer_perf.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library lexer_perf; 1 library lexer_perf;
2 2
3 import '_perf.dart'; 3 import '_perf.dart';
4 import 'package:angular/core/parser/parser_library.dart'; 4 import 'package:angular/core/parser/lexer.dart';
5 5
6 main() { 6 main() {
7 Lexer lexer = new Lexer(); 7 Lexer lexer = new Lexer();
8 time('ident', () => 8 time('ident', () =>
9 lexer.call('ctrl foo baz ctrl.foo ctrl.bar ctrl.baz')); 9 lexer.call('ctrl foo baz ctrl.foo ctrl.bar ctrl.baz'));
10 time('ident-path', () => 10 time('ident-path', () =>
11 lexer.call('a.b a.b.c a.b.c.d a.b.c.d.e.f')); 11 lexer.call('a.b a.b.c a.b.c.d a.b.c.d.e.f'));
12 time('num', () => 12 time('num', () =>
13 lexer.call('1 23 34 456 12341234 12351235')); 13 lexer.call('1 23 34 456 12341234 12351235'));
14 time('num-double', () => 14 time('num-double', () =>
15 lexer.call('.0 .1 .12 0.123 0.1234')); 15 lexer.call('.0 .1 .12 0.123 0.1234'));
16 time('string', () => 16 time('string', () =>
17 lexer.call("'quick brown dog and fox say what'")); 17 lexer.call("'quick brown dog and fox say what'"));
18 time('string-escapes', () => 18 time('string-escapes', () =>
19 lexer.call("quick '\\' brown \u1234 dog and fox\n\rsay what'")); 19 lexer.call("quick '\\' brown \u1234 dog and fox\n\rsay what'"));
20 } 20 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/perf/dom/compile_perf.dart ('k') | third_party/pkg/angular/perf/parser_perf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698