Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 4a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
regex start 220.2 Ops/sec
startsWith 169.1 Ops/sec
regex end 208.9 Ops/sec
endsWith 169.5 Ops/sec
indexOf start 471.1 Ops/sec
indexOf end 110.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;