csstext vs styles single (v6)

Revision 6 of this benchmark created on


Preparation HTML

<div id="myid">
    hi
</div>
<script>
  var test = document.getElementById('myid');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
cssText
test.style.cssText = "font-size:10px; background-color:#FF0000;"
ready
Individual style
test.style.fontSize = "10px";
test.style.backgroundColor = "#FF0000";
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.