Remove the ability to fallback to custom scheme handlers after a service worker did...
[WebKit-https.git] / PerformanceTests / Parser / query-selector-last.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6 for (var i = 0; i < 1000; i++) {
7     var div = document.createElement("div");
8     div.id = "foo" + i;
9     div.className = "bar" + i;
10     document.body.appendChild(div);
11 }
12
13 var h1 = document.createElement("h1");
14 h1.id = "id";
15 h1.className = "class";
16 document.body.appendChild(h1);
17
18 PerfTestRunner.measureRunsPerSecond({
19     description: "This benchmark tests querySelector() for an element that appears near the tail of the document",
20     run: function() {
21         for (var i = 0; i < 100; i++) {
22             document.querySelector("h1");
23             document.querySelector("#id");
24             document.querySelector(".class");
25         }
26     }});
27 </script>
28 </body>
29 </html>