Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash vs Vanilla test
(version: 0)
Comparing performance of:
lodash vs vanilla
Created:
3 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.10/lodash.min.js'></script>
Script Preparation code:
var values = Array(10000).fill(null).map((x, a) => ({number: a})); var filterFn = x => !(x.number % 5);
Tests:
lodash
const result1 = values.filter(filterFn); console.log(result1);
vanilla
const result2 = _.filter(values, filterFn); console.log(result2);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash
vanilla
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Browser/OS:
Chrome 127 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
lodash
2349.0 Ops/sec
vanilla
2423.6 Ops/sec
Related benchmarks:
Array.prototype.filter vs Lodash 4.17.5 filter
Speed Test : _.filter vs array filter
Lodash.filter vs Lodash.without
Lodash.filter vs Lodash.without vs array.filter
Lodash filter VS native filter (with Lodash actually loaded)
Comments
Confirm delete:
Do you really want to delete benchmark?