Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Find Benchmark Test
(version: 0)
find
Comparing performance of:
Lodash vs Native
Created:
7 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var users = [ { 'user': 'oğuzhan', 'age': 36, 'active': true }, { 'user': 'aslan', 'age': 34, 'active': false }, { 'user': 'can', 'age': 14, 'active': false }, { 'user': 'mehmet', 'age': 16, 'active': true }, { 'user': 'ahmet', 'age': 11, 'active': true }, { 'user': 'muharrem', 'age': 13, 'active': true }, { 'user': 'ince', 'age': 11, 'active': false }, ];
Tests:
Lodash
_.find(users, function (o) { return o.age < 40; })
Native
users.find(function (o) { return o.age < 40; })
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Lodash
Native
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Browser/OS:
Chrome 122 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Lodash
3571660.5 Ops/sec
Native
15123059.0 Ops/sec
Related benchmarks:
lodash find vs native find by id
Array find vs lodash _.find
native find vs lodash _.find equal
native find vs lodash findIndex
lodash find vs lodash findIndex2
Comments
Confirm delete:
Do you really want to delete benchmark?