Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
Chrome 55
Mac OS X 10.9.5
Other
7 years ago
Test name Executions per second
indexOf 4271693.0 Ops/sec
substr 6225481.0 Ops/sec
startsWith 4792445.5 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • substr

  • startsWith