Run details:
Mozilla/5.0 (Linux; Android 10; VOG-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.62 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
regex start 275.7 Ops/sec
startsWith 280.9 Ops/sec
regex end 261.0 Ops/sec
endsWith 280.9 Ops/sec
indexOf start 4426.3 Ops/sec
indexOf end 4473.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end