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

Unified Diff: PerformanceTests/Parser/query-selector-all-id-last.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-last.html
diff --git a/PerformanceTests/Parser/query-selector-id-last.html b/PerformanceTests/Parser/query-selector-all-id-last.html
similarity index 69%
copy from PerformanceTests/Parser/query-selector-id-last.html
copy to PerformanceTests/Parser/query-selector-all-id-last.html
index e161cd1724438e4a52785b37e23bc4f2f3e37d2c..8040f9b49a43e9ecf52b53afead1d5220574d42d 100644
--- a/PerformanceTests/Parser/query-selector-id-last.html
+++ b/PerformanceTests/Parser/query-selector-all-id-last.html
@@ -16,10 +16,10 @@ h1.className = "class";
document.body.lastChild.appendChild(h1);
PerfTestRunner.measureRunsPerSecond({
- description: "This benchmark tests querySelector() for an element that appears near the tail of the document, and is a child of an element with a given id",
+ description: "This benchmark tests querySelectorAll() for an element that appears near the tail of the document, and is a child of an element with a given id",
run: function() {
for (var i = 0; i < 100; i++) {
- var res = document.querySelector("#foo999 > h1");
+ var res = document.querySelectorAll("#foo999 > h1");
}
}});
</script>
« no previous file with comments | « PerformanceTests/Parser/query-selector-all-id-first.html ('k') | PerformanceTests/Parser/query-selector-all-last.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698