Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/81.0.4044.124 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 81
iOS 13.4
Mobile
4 years ago
Test name Executions per second
regex start 224.3 Ops/sec
startsWith 218.1 Ops/sec
regex end 161.0 Ops/sec
endsWith 218.7 Ops/sec
indexOf start 164.7 Ops/sec
indexOf end 149.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;