Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/103.0.5060.63 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 103
iOS 15.5
Mobile
one year ago
Test name Executions per second
regex start 225.2 Ops/sec
startsWith 232.0 Ops/sec
regex end 194.1 Ops/sec
endsWith 233.1 Ops/sec
indexOf start 164.1 Ops/sec
indexOf end 170.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end