Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Atlas - Lodash vs Native
(version: 0)
Comparing performance of:
Lodash each vs Native forEach vs Lodash map vs Native map
Created:
7 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
window.range = _.range(0, 500);
Tests:
Lodash each
const r = []; _.each(range, number => { r.push(number * number); });
Native forEach
const r = []; range.forEach(number => { r.push(number * number); });
Lodash map
const r = _.map(range, number => number * number);
Native map
const r = range.map(number => number * number);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Lodash each
Native forEach
Lodash map
Native map
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
_.isEmpty vs Array.length
isFunction vs typeof function 6
lodash dropRigth vs native pop
isEmpty vs. vanilla
lodash isFunction vs native
Comments
Confirm delete:
Do you really want to delete benchmark?