Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
lodash isEmpty vs ES6
...
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 17
Operating system:
iOS 17.2.1
Device Platform:
Mobile
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
lodash fp
12.7M/s
es6 map
8.4M/s
View exact numbers
Test name
Executions per second
✓
lodash fp
12,667,359 Ops/sec
es6 map
8,447,653 Ops/sec
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
const isEmptyObj = passedObj => !( (passedObj && passedObj === Object(passedObj) && Object.keys(passedObj).length !== 0) ) isEmptyObj(obj)