Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash chain filter map vs native filter map
(version: 1)
Comparing performance of:
lodash vs native
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.5/lodash.min.js'></script>
Script Preparation code:
var i = 0; var data = []; for (let i = 0; i < 1000000; i++) { data.push(i); }
Tests:
lodash
_.chain(data).filter((i) => i > 500000).map((i) => `__${i}__`).join(',').value()
native
data.filter((i) => i > 500000).map((i) => `__${i}__`).join(',')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash
native
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser/OS:
Chrome 133 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
lodash
25.2 Ops/sec
native
23.3 Ops/sec
Related benchmarks:
Filter-Map: Lodash chain vs Native
Filter-Map: Lodash vs Native, simple
CORRECTED: Filter-Map: Lodash vs Native
Filter-Map: Lodash FP vs Native code
Filter-Map: Lodash vs Native (smaller array
lodash map, foreach, for vs native for, map
lodash map, foreach, for vs native for and map
native lodash filter map 2dsfg
Lodash Chain vs &&
Comments
Confirm delete:
Do you really want to delete benchmark?