Vanilla JS V Jquery Hide

Benchmark created by Christian Stone on


Description

Proof That Jquery SUCKS!!!.. Actually just testing this http://forum.yola.com/yola/topics/whyjqueryisbetterthanregularjavascript

Preparation HTML

<div id="Stupid_Div">Stupid Crap</div><script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Jquery
$('#Stupid_Div').hide();
ready
Vanilla JS
document.getElementById("Stupid_Div").style.display = "none";
ready
Vanilla JS Retarded Suggestion
var hide = "none";//this var isnt needed
document.getElementById("Stupid_Div").style.display = hide;
ready

Revisions

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