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
Jump 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:
6 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
Test name
Executions per second
lodash.each
13421.5 Ops/sec
native forEach
171537.7 Ops/sec
Related benchmarks:
lodash.each vs Object.forEach
lodash.each vs Object.forEach
lodash.each vs Object.forEach
lodash.each vs Object.forEach
lodash vs for-of vs forEach
lodash.each vs Object.forEach
lodash.each vs Object.forEach vs lodash map
lodash.each vs Object.forEach vs Native for
lodash.each vs lodash.forEach
Comments
Confirm delete:
Do you really want to delete benchmark?