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

Side by Side Diff: PerformanceTests/Bindings/node-type.html

Issue 306783003: PerformanceTests/Bindings/scroll-top.html should use another DOM attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | PerformanceTests/Bindings/scroll-top.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/runner.js"></script> 4 <script src="../resources/runner.js"></script>
5 <script> 5 <script>
6 PerfTestRunner.measureRunsPerSecond({ 6 PerfTestRunner.measureRunsPerSecond({
7 description: "This benchmark covers DOM attributes that return small integer s.", 7 description: "This benchmark covers DOM attributes that return integers.",
8 run: function() { 8 run: function() {
9 var localBody = document.body; 9 var localBody = document.body;
10 for (var i = 0; i < 100000; i++) 10 for (var i = 0; i < 100000; i++)
11 localBody.scrollTop; 11 localBody.nodeType;
12 }}); 12 }});
13 </script> 13 </script>
14 </body> 14 </body>
15 </html> 15 </html>
OLDNEW
« no previous file with comments | « no previous file | PerformanceTests/Bindings/scroll-top.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698