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

Unified Diff: PerformanceTests/Parser/query-selector-all-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, 5 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 side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « PerformanceTests/Parser/query-selector-all-deep.html ('k') | PerformanceTests/Parser/query-selector-all-id-deep.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698