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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Browser:
Chrome 125
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Lodash
106.3 Ops/sec
Vanilla Javascript
132.2 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);