Run details:
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
Mac OS X 10.10.5
Desktop
one year ago
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
HTML Preparation code:
Script Preparation code:
Tests:
  • .charAt

  • .indexOf

  • Str[index]

  • .startWith


;