Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash.js vs Javascript (map)
(version: 1)
Comparing performance of:
Native map vs Lodash map
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 smallArray = Array.from({ length: 20 }, (_, i) => ({ value: i })); var iteratee = obj => obj.value * 2;
Tests:
Native map
smallArray.map(iteratee);
Lodash map
_.map(smallArray, iteratee);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Native map
Lodash map
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser/OS:
Chrome 136 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Lodash map
21.4M/s
Native map
5.8M/s
View exact numbers
Test name
Executions per second
✓
Lodash map
21,413,414 Ops/sec
Native map
5,787,022 Ops/sec
Related benchmarks
Loop over object: lodash vs Object.entries
lodash each vs native
Comments
Confirm delete:
Do you really want to delete benchmark?