Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash isEmpty vs Object.keys().length not empty 1234
testtest
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser:
Chrome 131
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Object.keys().length
540K/s
Lodash isEmpty
532K/s
View exact numbers
Test name
Executions per second
✓
Object.keys().length
539,635 Ops/sec
Lodash isEmpty
531,899 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Tests:
Lodash isEmpty
const test = undefined; console.log(!_.isEmpty(undefined))
Object.keys().length
const test = undefined; console.log(test && Object.values(test).length);