Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 3a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.73 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
regex start 165.1 Ops/sec
startsWith 119.2 Ops/sec
regex end 157.8 Ops/sec
endsWith 118.9 Ops/sec
indexOf start 342.8 Ops/sec
indexOf end 85.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;