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 = [{test:'hello'}, {test:'a'}, {test:'bc'}];
    var b = a.find(item => item.test === 'bc');
  • _.find

     
    var a = [{test:'hello'}, {test:'a'}, {test:'bc'}];
    var b = _.find(a, item => item.test === '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: 5 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74 on Windows
View result in a separate tab
Test name Executions per second
array find 24364980.0 Ops/sec
_.find 6646591.0 Ops/sec