Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Filter-Map: Lodash vs Native
(version: 0)
Comparing performance of:
Native filter-map vs Lodash filter-map
Created:
7 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
var data = Array(1000000).fill({ filtering: true, mapping: 42 });
Tests:
Native filter-map
data.filter(({ filtering }) => filtering).map(({ mapping }) => mapping)
Lodash filter-map
_.map(_.filter(data, 'filtering'), 'mapping')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Native filter-map
Lodash filter-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:
Filter-Map: Lodash vs Native (smaller array
Filter: Lodash 2 vs Native
Filter: Lodash vs Native - same filter
Map: Lodash vs Native
Map: Lodash vs Native JS
Comments
Confirm delete:
Do you really want to delete benchmark?