HTML Preparation code:
AخA
 
1
<script src="lodash.js"></script>
Script Preparation code:
 
var array = [...Array(100000).keys()];
var rum = Math.floor(100000 * Math.random());
Tests:
  • Array.prototype.find

     
    array.find(n => n === rum)
  • Lodash find

     
    _.find(array,n => n === rum)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.find
    Lodash find

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
Array.prototype.find 34191.8 Ops/sec
Lodash find 37755.2 Ops/sec