Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Mac OS X 10.15
Desktop
3 months ago
Test name Executions per second
regex start 1134.9 Ops/sec
startsWith 1831.3 Ops/sec
regex end 960.3 Ops/sec
endsWith 1941.7 Ops/sec
indexOf start 24556.2 Ops/sec
indexOf end 24320.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end