isEmpty vs isEmptyObject (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script type="text/javascript" src="http://z-api.devel.liveone.net/js/libs/lodash/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.