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

Side by Side Diff: samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart

Issue 9732019: dart:html perf optimization based on runing Dromaeo benchmarks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 8 years, 9 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("dom_traverse_html"); 1 #library("dom_traverse_html");
2 #import("dart:html"); 2 #import("dart:html");
3 #import('../common/common.dart'); 3 #import('../common/common.dart');
4 #source("Common.dart"); 4 #source("Common.dart");
5 #source("RunnerSuite.dart"); 5 #source("RunnerSuite.dart");
6 6
7 void main() { 7 void main() {
8 final int num = 40; 8 final int num = 40;
9 9
10 // Try to force real results. 10 // Try to force real results.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 .test('childNodes', () { 78 .test('childNodes', () {
79 for (int i = 0; i < num; i++) { 79 for (int i = 0; i < num; i++) {
80 final nodes = document.body.nodes; 80 final nodes = document.body.nodes;
81 for (int j = 0; j < nodes.length; j++) { 81 for (int j = 0; j < nodes.length; j++) {
82 ret = nodes[j]; 82 ret = nodes[j];
83 } 83 }
84 } 84 }
85 }) 85 })
86 .end(); 86 .end();
87 } 87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698