Run details:
Mozilla/5.0 (Linux; Android 11; KB2000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
regex start 418.0 Ops/sec
startsWith 505.9 Ops/sec
regex end 396.3 Ops/sec
endsWith 505.5 Ops/sec
indexOf start 5997.6 Ops/sec
indexOf end 6011.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end