Tests:
  • Index Of

    AخA
     
    var a = ['hello', 'a', 'bc', 'helloa'];
    var b = a.indexOf('helloa');
  • Includez

     
    var a = ['hello', 'a', 'bc', 'helloa'];
    var b = a.includes('helloa');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Index Of
    Includez

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Mobile Safari 15 on iOS 15.4
View result in a separate tab
Test name Executions per second
Index Of 56067708.0 Ops/sec
Includez 55527240.0 Ops/sec