Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / DOM / modify-element-title.html
blob5bf8cd92405537bdb5c2280b8446b6725958bbb3
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6 var element;
8 PerfTestRunner.measureTime({
9 description: "Measures performance of changing a DOM element's title property.",
11 setup: function() {
12 element = document.createElement('div');
15 run: function() {
16 for (var i = 0; i < 500000; ++i) {
17 element.title = 'title1';
18 element.title = 'title2';
21 });
22 </script>
23 </body>
24 </html>