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

Unified Diff: PerformanceTests/Parser/query-selector-all-deep.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-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>
« no previous file with comments | « PerformanceTests/Parser/query-selector-all-class-last.html ('k') | PerformanceTests/Parser/query-selector-all-first.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698