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:
4 years ago
by:
Guest
Go 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
lodash fp
8.0M/s
es6 map
4.1M/s
View exact numbers
Test name
Executions per second
✓
lodash fp
8,022,668 Ops/sec
es6 map
4,140,804 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 isNil vs native isNil with if
Comments
Confirm delete:
Do you really want to delete benchmark?