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

Side by Side Diff: PerformanceTests/Parser/query-selector-all-id-first.html

Issue 18732004: Add fast path for querySelector(All) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing (rebased) Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <h1 id="id" class="class"></h1> 4 <h1 id="id" class="class"></h1>
5 <script src="../resources/runner.js"></script> 5 <script src="../resources/runner.js"></script>
6 <script> 6 <script>
7 PerfTestRunner.measureRunsPerSecond({ 7 PerfTestRunner.measureRunsPerSecond({
8 description: "This benchmark tests querySelector() for an element that appea rs near the head of the document", 8 description: "This benchmark tests querySelectorAll() for an element that ap pears near the head of the document",
9 run: function() { 9 run: function() {
10 for (var i = 0; i < 1000; i++) { 10 for (var i = 0; i < 1000; i++) {
11 document.querySelector("h1"); 11 document.querySelectorAll("#id");
12 document.querySelector("#id");
13 document.querySelector(".class");
14 } 12 }
15 }}); 13 }});
16 </script> 14 </script>
17 </body> 15 </body>
18 </html> 16 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/Parser/query-selector-all-id-deep.html ('k') | PerformanceTests/Parser/query-selector-all-id-last.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698