HTML Preparation code:
Script Preparation code:
Tests:
  • .charAt

  • .indexOf

  • Str[index]

  • .startWith

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .charAt
    .indexOf
    Str[index]
    .startWith

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87 on Mac OS X 10.10.5
View result in a separate tab
Test name Executions per second
.charAt 650.0 Ops/sec
.indexOf 5494.8 Ops/sec
Str[index] 1036.3 Ops/sec
.startWith 1044.6 Ops/sec