Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:61.0) Gecko/20100101 Firefox/61.0
Firefox 61
Mac OS X 10.12
Desktop
6 years ago
Test name Executions per second
.charAt 90.1 Ops/sec
.indexOf 65.1 Ops/sec
Str[index] 103.2 Ops/sec
.startWith 96.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • .charAt

  • .indexOf

  • Str[index]

  • .startWith


;