Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
lodash flatmap vs Vanilla flatmap 3
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Browser:
Chrome 129
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Vanilla js flatmap
4145477.2 Ops/sec
lodash.flatMap
4820324.5 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script>
Script Preparation code:
var x = [{a: 1, b: 2}, [{a: 736457, b: 35345},[{a: 76457, b: 5345},{a: 23431, b: 43242},{a: 14324, b: 2342},{a: 141, b: 65432}],{a: 234311, b: -43242},{a: 124324, b: 23432},{a: 31, b: 234234432}],{a: 11, b: 22}, {a: 421, b: 112}, [{a: 76457, b: 5345},{a: 23431, b: 43242},{a: 14324, b: 2342},{a: 141, b: 65432}]]
Tests:
Vanilla js flatmap
x.flatMap(x => x.a+x.b)
lodash.flatMap
_.flatMap(x,x => x.a+x.b)