Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash Streams vs Vanilla Javascript
(version: 1)
Comparing performance of:
Lodash vs Vanilla Javascript
Created:
one year ago
by:
Guest
Jump to the latest result
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({value:getRandomInt(100)}); }
Tests:
Lodash
result = _(arr) .filter((value) => value > 50 ) .map((value) => ({ "value": value })) .value(); console.log(result);
Vanilla Javascript
const result = arr .filter(value => value > 50) .map(value => ({ value })); console.log(result);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Lodash
Vanilla Javascript
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
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/OS:
Mobile Safari 18 on iOS 18.1.1
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Lodash
580.9 Ops/sec
Vanilla Javascript
556.8 Ops/sec
Related benchmarks:
Lodash max vs Math.max
Lodash map vs array.prototype.map
Lodash.filter vs array.filter
Lodash min vs Math.min (lodash 4.7.11)
Lodash vs Math (lodash 4.17.5) arr(5000)
Lodash maxBy vs Math.max & Map
Lodash vs Array (lodash 4.17.5) arr(5000)
Lodash max vs JS Math.max (2022)
Lodash Streams vs Vanilla Javascript v2
Comments
Confirm delete:
Do you really want to delete benchmark?