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

Unified Diff: third_party/WebKit/PerformanceTests/DOM/long-sibling-list.html

Issue 2491203002: Backport the long-sibling-list perf test to reference build DOM APIs. (Closed)
Patch Set: Iterate fewer times to avoid timeouts on mobile devices. Created 4 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 | tools/perf/benchmarks/blink_perf.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/DOM/long-sibling-list.html
diff --git a/third_party/WebKit/PerformanceTests/DOM/long-sibling-list.html b/third_party/WebKit/PerformanceTests/DOM/long-sibling-list.html
index fb418b51ed5bc6f87a52ee07fe5ac6380521193d..5e7b870ae2271fcf20aa77d4040cbe7db0aa1689 100644
--- a/third_party/WebKit/PerformanceTests/DOM/long-sibling-list.html
+++ b/third_party/WebKit/PerformanceTests/DOM/long-sibling-list.html
@@ -12,12 +12,12 @@ PerfTestRunner.measureRunsPerSecond({
PerfTestRunner.gc();
},
run: () => {
- const num_words = 1000;
- for (let i = 0; i < num_words; i++) {
- let a = document.createElement('a');
- a.append(i);
- container.append(a);
- container.append(' ');
+ const num_words = 300;
+ for (var i = 0; i < num_words; i++) {
+ var a = document.createElement('a');
+ a.appendChild(document.createTextNode('' + i));
+ container.appendChild(a);
+ container.appendChild(document.createTextNode(' '));
}
PerfTestRunner.forceLayout();
}
« no previous file with comments | « no previous file | tools/perf/benchmarks/blink_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698