| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/runner.js"></script> | 4 <script src="../resources/runner.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div id="test"></div> | 7 <div id="test"></div> |
| 8 </body> | 8 </body> |
| 9 <script> | 9 <script> |
| 10 var div = document.getElementById("test"); | 10 var div = document.getElementById("test"); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 'textDecoration' : 'blink', | 65 'textDecoration' : 'blink', |
| 66 'textTransform' : 'capitalize', | 66 'textTransform' : 'capitalize', |
| 67 'top' : '25%', | 67 'top' : '25%', |
| 68 'verticalAlign' : 'text-bottom', | 68 'verticalAlign' : 'text-bottom', |
| 69 'visibility' : 'visible', | 69 'visibility' : 'visible', |
| 70 'width' : '300px', | 70 'width' : '300px', |
| 71 'webkitTransform' : 'scale3d(0.5, 0.5, 0.5)', | 71 'webkitTransform' : 'scale3d(0.5, 0.5, 0.5)', |
| 72 'wordSpacing' : '40px', | 72 'wordSpacing' : '40px', |
| 73 }; | 73 }; |
| 74 // The first run will just add the properties but it's fine as the first run of
the benchmark is always ignored. | 74 // The first run will just add the properties but it's fine as the first run of
the benchmark is always ignored. |
| 75 PerfTestRunner.measureRunsPerSecond({run:function() { | 75 PerfTestRunner.measureRunsPerSecond({ |
| 76 for (key in properties) | 76 description: "Measures performance of the CSS style array index setter (elem
.style[a] = b).", |
| 77 div.style[key] = properties[key]; | 77 run:function() { |
| 78 }}); | 78 for (key in properties) |
| 79 div.style[key] = properties[key]; |
| 80 } |
| 81 }); |
| 79 </script> | 82 </script> |
| 80 </html> | 83 </html> |
| OLD | NEW |