_.find vs arrays.prototype.find (v3)

Revision 3 of this benchmark created by Ben on


Description

compare speed

Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>

Setup

var arr = "abcdefghijklmnopqrstuvwxyz1234567890".split('');

Test runner

Ready to run.

Testing in
TestOps/sec
try with javascript
var x = arr.find(function (it) { return it === '5'; });
ready
_.find
_.find(arr, function (it) { return it === '5'; });
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.