Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Linux
Desktop
one month ago
Test name Executions per second
regex start 586232.5 Ops/sec
startsWith 855640.0 Ops/sec
regex end 510375.7 Ops/sec
endsWith 832840.2 Ops/sec
indexOf start 2520897.0 Ops/sec
indexOf end 1930065.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end