Run details:
Mozilla/5.0 (Linux; Android 9; LG-D855) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.111 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
regex start 71.5 Ops/sec
startsWith 25.3 Ops/sec
regex end 58.2 Ops/sec
endsWith 36.6 Ops/sec
indexOf start 146.9 Ops/sec
indexOf end 25.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end