csstext vs styles single (v3)

Revision 3 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;font-weight:700"
ready
Individual style
test.style.fontSize = "10px";
test.style.fontWeight = "700";
ready

Revisions

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