Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Ubuntu
Desktop
3 months ago
Test name Executions per second
regex start 440.8 Ops/sec
startsWith 610.7 Ops/sec
regex end 415.6 Ops/sec
endsWith 623.4 Ops/sec
indexOf start 9573.1 Ops/sec
indexOf end 9924.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end