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

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

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 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 | « PerformanceTests/DOM/modify-element-title.html ('k') | PerformanceTests/DOM/textarea-edit.html » ('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 d52ec19a031f7f0383582379ee584b43175db812..b9bd1e2a181007f43bc51cd51e649299985815bb 100644
--- a/PerformanceTests/DOM/textarea-dom.html
+++ b/PerformanceTests/DOM/textarea-dom.html
@@ -16,10 +16,14 @@ var nodes = [];
var childCount = 1000;
for (var i = 0; i < childCount; ++i)
nodes.push(document.createTextNode('A quick brown fox jumps over the lazy dog.\n'));
-PerfTestRunner.measureRunsPerSecond({run: function() {
- for (var i = 0; i < childCount; ++i)
- container.appendChild(nodes[i]);
- container.innerHTML = '';
-}});
+
+PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of adding text nodes to a textarea, then clearing it.",
+ run: function() {
+ for (var i = 0; i < childCount; ++i)
+ container.appendChild(nodes[i]);
+ container.innerHTML = '';
+ }
+});
</script>
</body>
« no previous file with comments | « PerformanceTests/DOM/modify-element-title.html ('k') | PerformanceTests/DOM/textarea-edit.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698