This benchmark compares the performance of lodash's `isEmpty` function with native JavaScript code for checking if an object is empty. The lodash `isEmpty` function checks if a value is an empty object, collection, map, or set. The native JavaScript code checks if an object has no own enumerable string keyed properties.
Comparing performance of: _.isEmpty vs Native JavaScript
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
_.isEmpty
Native JavaScript
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
6 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36