Tests:
  • Starts With

    AخA
     
    var a = 'hello#a#bc#helloa';
    var b = a.startsWith('helloa');
  • Index Of

     
    var a = 'hello#a#bc#helloa';
    var b = a.indexOf('helloa');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Starts With
    Index Of

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Starts With 106189552.0 Ops/sec
Index Of 232814544.0 Ops/sec