Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Find: Native vs Underscore 1.13 vs Lodash 4.17
updated versions
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0
Browser:
Firefox 148
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
6 months ago
Benchmark engine:
Benchmark.js
Native
1246.1M/s
Underscore
34.2M/s
Lodash
20.1M/s
View exact numbers
Test name
Executions per second
✓
Native
1,246,092,928 Ops/sec
Underscore
34,161,116 Ops/sec
Lodash
20,117,724 Ops/sec
HTML Preparation code:
<script src='https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js'></script> <script src='https://cdn.jsdelivr.net/npm/underscore@1.13.1/underscore-umd-min.js'></script>
Script Preparation code:
var users = [ { 'user': 'joey', 'age': 32 }, { 'user': 'ross', 'age': 41 }, { 'user': 'chandler', 'age': 39 }, ] // Underscore was loaded last, so this saves an instance of underscore and resets _ to it's previous value (lodash). var _underscore = _.noConflict(); // This saves an instance of lodash and resets _ to it's previous value (undefined). var _lodash = _.noConflict();
Tests:
Native
users.find(function (o) { return o.age < 40; })
Underscore
_underscore.find(users, function (o) { return o.age < 40; })
Lodash
_lodash.find(users, function (o) { return o.age < 40; })