1<!DOCTYPE html> 2<html> 3<body> 4<script src="../resources/runner.js"></script> 5<script> 6var element; 7 8PerfTestRunner.measureTime({ 9 setup: function() { 10 element = document.createElement('div'); 11 }, 12 13 run: function() { 14 for (var i = 0; i < 500000; ++i) { 15 element.className = 'class1'; 16 element.className = 'class2'; 17 } 18 } 19}); 20</script> 21</body> 22</html> 23