Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
CORRECTED: Filter-Map: Lodash vs Native
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 8.0.0; Mobile; rv:123.0) Gecko/123.0 Firefox/123.0
Browser:
Firefox Mobile 123
Operating system:
Android 8.0.0
Device Platform:
Mobile
Date tested:
2 years ago
Test name
Executions per second
Native filter-map
3.5 Ops/sec
Lazy Lodash filter-map
2.3 Ops/sec
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)
Lazy Lodash filter-map
_(data).filter('filtering').map('mapping').value()