Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Ubuntu
Desktop
5 months ago
Test name Executions per second
regex start 642.2 Ops/sec
startsWith 758.0 Ops/sec
regex end 573.7 Ops/sec
endsWith 741.6 Ops/sec
indexOf start 10803.1 Ops/sec
indexOf end 10649.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end