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 findindex

     
    var a = ['hello', 'a', 'bc', 'cc', 'ca'];
    var b = a.findIndex(item => item === 'zz');
  • array any

     
    var a = ['hello', 'a', 'bc', 'cc', 'ca'];
    var b = a.some(item => item === 'zz');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array findindex
    array any

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 YaBrowser/24.4.0.0 Safari/537.36
Yandex Browser 24 on Windows
View result in a separate tab
Test name Executions per second
array findindex 102160416.0 Ops/sec
array any 98135104.0 Ops/sec