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

Unified Diff: third_party/WebKit/PerformanceTests/DOM/select-multiple-add.html

Issue 1445443004: Add performance tests for adding options to a select element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: consistent quotes Created 5 years, 1 month 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 | third_party/WebKit/PerformanceTests/DOM/select-single-add.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/DOM/select-multiple-add.html
diff --git a/third_party/WebKit/PerformanceTests/DOM/select-multiple-add.html b/third_party/WebKit/PerformanceTests/DOM/select-multiple-add.html
new file mode 100644
index 0000000000000000000000000000000000000000..88d37869e53a13e0e194f8ec6d03fe77824521af
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/DOM/select-multiple-add.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<body>
+<script src="../resources/runner.js"></script>
+<select id="container" multiple></select>
+<script>
+var container = document.getElementById('container');
+var nodes = [];
+var childCount = 500;
+for (var i = 0; i < childCount; ++i) {
+ nodes.push(document.createElement('option'));
+ nodes[i].selected = !!(i % 2);
+}
+
+PerfTestRunner.measureRunsPerSecond({
+ description: 'Measures performance of adding option elements to a multi-selection select element.',
+ run: function() {
+ for (var i = 0; i < childCount; ++i)
+ container.appendChild(nodes[i]);
+ container.innerHTML = '';
+ }
+});
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/DOM/select-single-add.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698