Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash Streams vs Vanilla Javascript v2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.1.1
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Lodash
1182.2 Ops/sec
Vanilla Javascript
982.7 Ops/sec
Script Preparation code:
function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); } var arr = []; for(var i = 0; i < 100000; i++){ arr.push({valueF:getRandomInt(100), valueM:getRandomInt(100)}); }
Tests:
Lodash
result = _(arr) .filter((value) => value.valueF > 50 ) .map((value) => ({ "value": value.valueM })) .value(); console.log(result);
Vanilla Javascript
const result = arr .filter(value => value.valueF > 50) .map(value => ({ value: value.valueM })); console.log(result);