Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Lodash vs Vanilla test
(version: 0)
Benchmark.js
Comparing performance of:
lodash vs vanilla
Created:
3 years ago
by:
Guest
Go 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:
2 years 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
vanilla
2K/s
lodash
2K/s
View exact numbers
Test name
Executions per second
✓
vanilla
2,424 Ops/sec
lodash
2,349 Ops/sec
Related benchmarks
Speed Test : _.filter vs array filter
Lodash.filter vs Lodash.without
Lodash filter VS native filter (with Lodash actually loaded)
Comments
Confirm delete:
Do you really want to delete benchmark?