getBoundingClientRect vs jQuery (v15)

Revision 15 of this benchmark created by Niel on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="foo" style="width:500px; height:500px; padding:10px; border:10px solid #000000;">
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
getBoundingClientRect
document.getElementById('foo').getBoundingClientRect();
ready
jQuery
$('#foo').position();
ready

Revisions

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