Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 3a XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
regex start 169.3 Ops/sec
startsWith 157.0 Ops/sec
regex end 161.0 Ops/sec
endsWith 153.8 Ops/sec
indexOf start 333.1 Ops/sec
indexOf end 99.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;