Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash findLast vs Native findLast v2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Browser:
Firefox 130
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Native
15.0 Ops/sec
lodash
12.8 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
var arr = []; for (var i = 0; i <= 10000000; i++) { if (i % 2 === 0) { arr.push(5) } else { arr.push(i); } }
Tests:
Native
arr.findLast(function (element) { element === 5 });
lodash
_.findLast(arr, function (element) { element === 5});