Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 7) 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 151.3 Ops/sec
startsWith 143.1 Ops/sec
regex end 145.8 Ops/sec
endsWith 144.2 Ops/sec
indexOf start 1120.7 Ops/sec
indexOf end 1118.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;