Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / DOM / modify-element-classname.html
blobaf48dedff94ae78c05f1ca949b5937aef88ff978
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 className property.",
11 setup: function() {
12 element = document.createElement('div');
15 run: function() {
16 for (var i = 0; i < 500000; ++i) {
17 element.className = 'class1';
18 element.className = 'class2';
21 });
22 </script>
23 </body>
24 </html>