HTML Preparation code:
AخA
 
1
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.core.js"></script>
Tests:
  • array find

     
    var a = [{item:'hello'}, {item:'a'}, {item:'bc'}];
    var b = a.find(item => item.item === 'bc');
  • _.find

     
    var a = [{item:'hello'}, {item:'a'}, {item:'bc'}];
    var b = _.find(a, item => item.item === 'bc');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array find
    _.find

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Chrome 71 on Mac OS X 10.14.2
View result in a separate tab
Test name Executions per second
array find 41748360.0 Ops/sec
_.find 3809075.0 Ops/sec