_.isEmpty vs isEmptyObject

Benchmark created on


Preparation HTML

<script src="https://unpkg.com/lodash@4.17.21/lodash.min.js" />

Test runner

Ready to run.

Testing in
TestOps/sec
_.isEmpty
_.isEmpty({})
ready
isEmptyObject
JSON.stringify({}) === '{}'
ready

Revisions

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