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

Unified Diff: PerformanceTests/Parser/query-selector-all-id-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-id-deep.html
diff --git a/PerformanceTests/Parser/query-selector-id-deep.html b/PerformanceTests/Parser/query-selector-all-id-deep.html
similarity index 70%
copy from PerformanceTests/Parser/query-selector-id-deep.html
copy to PerformanceTests/Parser/query-selector-all-id-deep.html
index 3b9fc1aa75ab8732f238dac65af46c8e8fdd17d7..f3624cf2faaa11ed755bfab35313f5ce3b61c6b6 100644
--- a/PerformanceTests/Parser/query-selector-id-deep.html
+++ b/PerformanceTests/Parser/query-selector-all-id-deep.html
@@ -18,10 +18,10 @@ 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, and is a descendant of an element with a given id",
run: function() {
for (var i = 0; i < 100; i++) {
- var res = document.querySelector("#foo998 h1");
+ var res = document.querySelectorAll("#foo998 h1");
}
}});
</script>
« no previous file with comments | « PerformanceTests/Parser/query-selector-all-first.html ('k') | PerformanceTests/Parser/query-selector-all-id-first.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698