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

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

Issue 1355013002: Speed up updating inner value of HTMLTextFormControlElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: adjust textarea-dom to work over varying strings 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 | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/DOM/textarea-dom.html
diff --git a/PerformanceTests/DOM/textarea-dom.html b/PerformanceTests/DOM/textarea-dom.html
index b9bd1e2a181007f43bc51cd51e649299985815bb..542a4117c9428050561b2513acd1b2633d67438d 100644
--- a/PerformanceTests/DOM/textarea-dom.html
+++ b/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 any secondary effects of using identical strings and reusing its allocation.
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'));
tkent 2015/09/24 03:16:40 Please land this separately.
sof 2015/09/25 08:51:35 Done + adjusted description accordingly.
PerfTestRunner.measureRunsPerSecond({
description: "Measures performance of adding text nodes to a textarea, then clearing it.",
« no previous file with comments | « no previous file | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698