isEmpty vs isEmptyObject (v4)

Revision 4 of this benchmark created by Brian O on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js">
</script>

Setup

var obj = {}

Test runner

Ready to run.

Testing in
TestOps/sec
$.isEmpty
!$.isEmptyObject(obj)
ready
_.isEmpty
!_.isEmpty(obj)
ready

Revisions

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