Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash isEmpty vs native ES6
(version: 0)
...
Comparing performance of:
lodash fp vs es6 map
Created:
3 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/g/lodash@4(lodash.min.js+lodash.fp.min.js)"></script>
Script Preparation code:
var obj = { a: 1, b: 2, c: 3, d: { a: 1 }, g: { a: { c: 1 } } }
Tests:
lodash fp
_.isEmpty(obj)
es6 map
(obj && obj === Object(obj) && Object.keys(obj).length !== 0)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash fp
es6 map
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Browser/OS:
Chrome 119 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
lodash fp
8022667.5 Ops/sec
es6 map
4140803.8 Ops/sec
Related benchmarks:
Object cloning with Lodash clone vs cloneDeep vs merge vs ES6 object spread vs ES6 Object.assign
Object cloning with Lodash clone vs ES6 object spread vs ES6 Object.assign vs Json
lodash isEmpty vs ES6 implementation from stack overflow
lodash isNil vs native isNil with if
Lodash cloneDeep vs merge vs ES6 object spread vs ES6 Object.assign
Comments
Confirm delete:
Do you really want to delete benchmark?