Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash each vs native
(version: 1)
Comparing performance of:
lodash.each vs native forEach
Created:
one year ago
by:
Guest
Go to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js'></script>
Script Preparation code:
var obj = Array.from({ length: 10000 }).map((value, i) => i);
Tests:
lodash.each
_.each(obj, function(v) {})
native forEach
obj.forEach(function(v) {})
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash.each
native forEach
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Browser/OS:
Chrome 141 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
native forEach
172K/s
lodash.each
13K/s
View exact numbers
Test name
Executions per second
✓
native forEach
171,538 Ops/sec
lodash.each
13,422 Ops/sec
Related benchmarks
lodash.each vs Object.forEach
lodash vs for-of vs forEach
Comments
Confirm delete:
Do you really want to delete benchmark?