BSI.util.mixin() vs jQuery.extend() vs. native DOM (v14)

Revision 14 of this benchmark created on


Preparation HTML

<div id="box">I'm a box</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://bytes1.dyndns.org/BSI/website-app.js"></script>

Setup

var el = document.getElementById("box");

Teardown



            el = null;
        
  

Test runner

Ready to run.

Testing in
TestOps/sec
BSI.util.mixin()
BSI.util.mixin(el.style, {
  background: "#0000FF",
  boxShadow: "1px 1px 5px 5px blue",
  width: "100px",
  height: "100px",
  display: "block"
});
ready
jQuery.extend()
$.extend(el.style,{
  background: "#0000FF",
  boxShadow: "1px 1px 5px 5px blue",
  width: "100px",
  height: "100px",
  display: "block"
});
ready
Native DOM
el.style.background = "#00FF00";
el.style.width = "100px";
el.style.height = "100px";
el.style.display = "block";
el.style.boxShadow = "1px 1px 5px 5px green";
ready

Revisions

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