jqueryvsmu6

Benchmark created on


Preparation HTML

<script src='http://code.jquery.com/jquery-1.10.2.min.js'></script>
<script>
function $(a){return new $.prototype.init(document.querySelectorAll(a))}$.prototype={constructor:$,init:function(a){this.nodeList=a;return this},each:function(d){var a=this.nodeList;for(var b=0,c=a.length;b<c;++b){d.call(a[b])}return this},css:function(a){return this.each(function(){for(var b in a){this.style[b]=a[b]}})}};$.prototype.init.prototype=$.prototype;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jq
$("div").css({ "backgroundColor": "red" });
ready
mu
$$("div").css({ "backgroundColor": "red" });
ready

Revisions

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