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

Side by Side Diff: PerformanceTests/Bindings/dom-attribute-on-prototoype.html

Issue 836923005: Add a performance benchmark for Node.baseURI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6 var elements = [];
7 elements.push(document.createElement("div"));
8 elements.push(document.createElement("a"));
9 elements.push(document.createElement("br"));
10 elements.push(document.createElement("form"));
11 elements.push(document.createElement("canvas"));
12 elements.push(document.createElement("img"));
13 elements.push(document.createElement("details"));
14 elements.push(document.createElement("font"));
15 elements.push(document.createElement("span"));
16 elements.push(document.createElement("table"));
17 elements.push(document.createElement("tbody"));
18 elements.push(document.createElement("th"));
19 elements.push(document.createElement("tr"));
20 elements.push(document.createElement("td"));
21
22 PerfTestRunner.measureRunsPerSecond({
23 description: "A benchmark to test performance when accessing a DOM attribute on a prototype chain of multipe types of elements. See https://crbug.com/43394 for more background.",
24 run: function() {
25 var localElements = elements;
26 for (var i = 0; i < 10000; i++) {
27 for (var j = 0; j < 14; j++) {
28 elements[j].baseURI;
29 }
30 }
31 }});
32 </script>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698