Run details:
Mozilla/5.0 (Linux; Android 9; LLD-L31) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36
Chrome Mobile 76
Android
Mobile
5 years ago
Test name Executions per second
regex start 47.8 Ops/sec
startsWith 22.0 Ops/sec
regex end 46.7 Ops/sec
endsWith 21.9 Ops/sec
indexOf start 91.3 Ops/sec
indexOf end 21.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end