Index: PerformanceTests/Parser/query-selector-all-deep.html |
diff --git a/PerformanceTests/Parser/query-selector-id-deep.html b/PerformanceTests/Parser/query-selector-all-deep.html |
similarity index 68% |
copy from PerformanceTests/Parser/query-selector-id-deep.html |
copy to PerformanceTests/Parser/query-selector-all-deep.html |
index 3b9fc1aa75ab8732f238dac65af46c8e8fdd17d7..48e1b0cb58f3fe003c5e03e3a2890eb4d9b4a81c 100644 |
--- a/PerformanceTests/Parser/query-selector-id-deep.html |
+++ b/PerformanceTests/Parser/query-selector-all-deep.html |
@@ -18,10 +18,12 @@ h1.className = "class"; |
parentDiv.appendChild(h1); |
PerfTestRunner.measureRunsPerSecond({ |
- description: "This benchmark tests querySelector() for an element that appears in the depths in the document, and is a descendant of an element with a given id", |
+ description: "This benchmark tests querySelectorAll() for an element that appears in the depths in the document", |
run: function() { |
for (var i = 0; i < 100; i++) { |
- var res = document.querySelector("#foo998 h1"); |
+ document.querySelectorAll("h1"); |
+ document.querySelectorAll("#id"); |
+ document.querySelectorAll(".class"); |
} |
}}); |
</script> |