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

Unified Diff: PerformanceTests/Bindings/get-attribute-rare.html

Issue 189483004: WontFix: Add fast path for id/name/style/class in getAttribute/setAttribute bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add performance tests about rare attribute. Created 6 years, 9 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
« no previous file with comments | « no previous file | PerformanceTests/Bindings/set-attribute-rare.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/Bindings/get-attribute-rare.html
diff --git a/PerformanceTests/Bindings/get-attribute.html b/PerformanceTests/Bindings/get-attribute-rare.html
similarity index 84%
copy from PerformanceTests/Bindings/get-attribute.html
copy to PerformanceTests/Bindings/get-attribute-rare.html
index 0bac2633fe1b93e5001644ee5b4710f93016ca5d..1a44809e71cb20bd3f171e5285154cb3900c0804 100644
--- a/PerformanceTests/Bindings/get-attribute.html
+++ b/PerformanceTests/Bindings/get-attribute-rare.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<body>
-<div id="foo"></div>
+<div id="foo" role="group"></div>
<script src="../resources/runner.js"></script>
<script>
var div = document.getElementById("foo");
@@ -11,7 +11,7 @@ PerfTestRunner.measureRunsPerSecond({
run: function() {
var localDiv = div;
for (var i = 0; i < 100000; i++)
- localDiv.getAttribute("id");
+ localDiv.getAttribute("role");
}});
</script>
</body>
« no previous file with comments | « no previous file | PerformanceTests/Bindings/set-attribute-rare.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698