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

Unified Diff: third_party/WebKit/PerformanceTests/Parser/query-selector-id-deep.html

Issue 1880383002: Re-enable deep query-selector PerformanceTests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce depth to 100 Created 4 years, 7 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: third_party/WebKit/PerformanceTests/Parser/query-selector-id-deep.html
diff --git a/third_party/WebKit/PerformanceTests/Parser/query-selector-id-deep.html b/third_party/WebKit/PerformanceTests/Parser/query-selector-id-deep.html
index 3b9fc1aa75ab8732f238dac65af46c8e8fdd17d7..51f4e829d6bb5ead19d7bad5644636066ff4a8f5 100644
--- a/third_party/WebKit/PerformanceTests/Parser/query-selector-id-deep.html
+++ b/third_party/WebKit/PerformanceTests/Parser/query-selector-id-deep.html
@@ -4,7 +4,7 @@
<script src="../resources/runner.js"></script>
<script>
var parentDiv = document.body;
-for (var i = 0; i < 1000; i++) {
+for (var i = 0; i < 100; i++) {
var div = document.createElement("div");
div.id = "foo" + i;
div.className = "bar" + i;
@@ -21,7 +21,7 @@ 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",
run: function() {
for (var i = 0; i < 100; i++) {
- var res = document.querySelector("#foo998 h1");
+ var res = document.querySelector("#foo98 h1");
}
}});
</script>
« no previous file with comments | « third_party/WebKit/PerformanceTests/Parser/query-selector-deep.html ('k') | third_party/WebKit/PerformanceTests/Skipped » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698