jQuery hide vs javascript hide

Benchmark created by galitskyd on


Preparation HTML

<div id="test">TEST</div><script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
$('#test').hide();
ready
Javascript
document.getElementById('test').style.display='none';
ready

Revisions

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

  • Revision 1: published by galitskyd on