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

Unified Diff: third_party/WebKit/PerformanceTests/DOM/textarea-dom.html

Issue 1367923004: blink_perf.dom.textarea-dom: vary text nodes added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/DOM/textarea-dom.html
diff --git a/third_party/WebKit/PerformanceTests/DOM/textarea-dom.html b/third_party/WebKit/PerformanceTests/DOM/textarea-dom.html
index b9bd1e2a181007f43bc51cd51e649299985815bb..23f3f341f0a5cf7c6f07135d8713fd92469482a9 100644
--- a/third_party/WebKit/PerformanceTests/DOM/textarea-dom.html
+++ b/third_party/WebKit/PerformanceTests/DOM/textarea-dom.html
@@ -14,8 +14,9 @@ textarea:invalid {
var container = document.getElementById('container');
var nodes = [];
var childCount = 1000;
+// Vary the text nodes added, avoiding secondary effects of using identical strings and allocation reuse.
for (var i = 0; i < childCount; ++i)
- nodes.push(document.createTextNode('A quick brown fox jumps over the lazy dog.\n'));
+ nodes.push(document.createTextNode('A quick brown fox jumps over the ' + i + 'th lazy dog.\n'));
PerfTestRunner.measureRunsPerSecond({
description: "Measures performance of adding text nodes to a textarea, then clearing it.",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698