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

Side by Side Diff: PerformanceTests/DOM/modify-element-title.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 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
« no previous file with comments | « PerformanceTests/DOM/modify-element-id.html ('k') | PerformanceTests/DOM/textarea-dom.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 var element; 6 var element;
7 7
8 PerfTestRunner.measureTime({ 8 PerfTestRunner.measureTime({
9 description: "Measures performance of changing a DOM element's title propert y.",
10
9 setup: function() { 11 setup: function() {
10 element = document.createElement('div'); 12 element = document.createElement('div');
11 }, 13 },
12 14
13 run: function() { 15 run: function() {
14 for (var i = 0; i < 500000; ++i) { 16 for (var i = 0; i < 500000; ++i) {
15 element.title = 'title1'; 17 element.title = 'title1';
16 element.title = 'title2'; 18 element.title = 'title2';
17 } 19 }
18 } 20 }
19 }); 21 });
20 </script> 22 </script>
21 </body> 23 </body>
22 </html> 24 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/DOM/modify-element-id.html ('k') | PerformanceTests/DOM/textarea-dom.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698