Run details:
Mozilla/5.0 (Linux; Android 11; MI 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
Chrome Mobile 95
Android
Mobile
3 years ago
Test name Executions per second
regex start 234.9 Ops/sec
startsWith 45.5 Ops/sec
regex end 61.4 Ops/sec
endsWith 45.5 Ops/sec
indexOf start 111.8 Ops/sec
indexOf end 28.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end