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
Go 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
lodash
25/s
native
23/s
View exact numbers
Test name
Executions per second
✓
lodash
25 Ops/sec
native
23 Ops/sec
Related benchmarks
CORRECTED: Filter-Map: Lodash vs Native
lodash map, foreach, for vs native for and map
Lodash Chain vs &&
Comments
Confirm delete:
Do you really want to delete benchmark?