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.", |