Run details:
Mozilla/5.0 (Linux; Android 12; CPH2005) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
regex start 246.1 Ops/sec
startsWith 182.9 Ops/sec
regex end 229.4 Ops/sec
endsWith 186.4 Ops/sec
indexOf start 3961.7 Ops/sec
indexOf end 3446.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end