| Index: PerformanceTests/Parser/query-selector-all-first.html
|
| diff --git a/PerformanceTests/Parser/query-selector-first.html b/PerformanceTests/Parser/query-selector-all-first.html
|
| similarity index 50%
|
| copy from PerformanceTests/Parser/query-selector-first.html
|
| copy to PerformanceTests/Parser/query-selector-all-first.html
|
| index 896e0e0894c58cd1bb2f36c5dff0745fa6ab008c..34076b4e5bfaa29c9334bce607596701da20634a 100644
|
| --- a/PerformanceTests/Parser/query-selector-first.html
|
| +++ b/PerformanceTests/Parser/query-selector-all-first.html
|
| @@ -5,12 +5,12 @@
|
| <script src="../resources/runner.js"></script>
|
| <script>
|
| PerfTestRunner.measureRunsPerSecond({
|
| - description: "This benchmark tests querySelector() for an element that appears near the head of the document",
|
| + description: "This benchmark tests querySelectorAll() for an element that appears near the head of the document",
|
| run: function() {
|
| for (var i = 0; i < 1000; i++) {
|
| - document.querySelector("h1");
|
| - document.querySelector("#id");
|
| - document.querySelector(".class");
|
| + document.querySelectorAll("h1");
|
| + document.querySelectorAll("#id");
|
| + document.querySelectorAll(".class");
|
| }
|
| }});
|
| </script>
|
|
|