Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash forOwn vs Native keys and forEach
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Browser:
Chrome 145
Operating system:
Windows
Device Platform:
Desktop
Date tested:
5 months ago
Keys and then forEach
33.1M/s
lodash forOwn
8.7M/s
View exact numbers
Test name
Executions per second
✓
Keys and then forEach
33,141,216 Ops/sec
lodash forOwn
8,665,680 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var obj = { a: 1, b: 2, c: 3, }
Tests:
lodash forOwn
_.forOwn(obj, () => {});
Keys and then forEach
Object.keys(obj).forEach(() => {});