Jquery Vs nod

Benchmark created by Ali on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>


<div id="ali" style="background-color:Red;width:100px;height:30px;padding:10px" </div>

Test runner

Ready to run.

Testing in
TestOps/sec
Jquery
$(document.getElementById('ali')).click(function(){this.html('asdasd')});
 
ready
Dom
$(document.getElementById('ali')).onclick =  function () { this.fade()}
 
ready

Revisions

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