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

Unified Diff: PerformanceTests/Parser/tiny-innerHTML.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/Parser/textarea-parsing.html ('k') | PerformanceTests/Parser/url-parser.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/Parser/tiny-innerHTML.html
diff --git a/PerformanceTests/Parser/tiny-innerHTML.html b/PerformanceTests/Parser/tiny-innerHTML.html
index 72b052ea03c51f6d6d0e3edc3f8ddd84186d8c82..2e8cbdb6fe1704586f831b270baa2570b7259b26 100644
--- a/PerformanceTests/Parser/tiny-innerHTML.html
+++ b/PerformanceTests/Parser/tiny-innerHTML.html
@@ -2,14 +2,17 @@
<body>
<script src="../resources/runner.js"></script>
<script>
-PerfTestRunner.measureRunsPerSecond({run:function() {
- var testDiv = document.createElement("div");
- testDiv.style.display = "none";
- document.body.appendChild(testDiv);
- for (var x = 0; x < 100000; x++) {
- testDiv.innerHTML = "This is a tiny HTML document";
+PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of creating an element and setting a tiny amount of HTML.",
+ run: function() {
+ var testDiv = document.createElement("div");
+ testDiv.style.display = "none";
+ document.body.appendChild(testDiv);
+ for (var x = 0; x < 100000; x++) {
+ testDiv.innerHTML = "This is a tiny HTML document";
+ }
+ document.body.removeChild(testDiv);
}
- document.body.removeChild(testDiv);
-}});
+});
</script>
</body>
« no previous file with comments | « PerformanceTests/Parser/textarea-parsing.html ('k') | PerformanceTests/Parser/url-parser.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698