Run details:
Mozilla/5.0 (Linux; Android 9; MI 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
regex start 162.1 Ops/sec
startsWith 84.4 Ops/sec
regex end 152.7 Ops/sec
endsWith 83.4 Ops/sec
indexOf start 295.8 Ops/sec
indexOf end 62.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end