jquery css() versus simple javascript style change (v6)

Revision 6 of this benchmark created on


Preparation HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<div id="bP4" style="left:10px; top:10px;"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
css()
$("#bP4")
ready
ordinary js
document.getElementById('bP4');
 
ready

Revisions

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