Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0
Firefox 144
Linux
Desktop
8 months ago
Test name Executions per second
regex start 860.1 Ops/sec
startsWith 21638.6 Ops/sec
regex end 808.7 Ops/sec
endsWith 21526.5 Ops/sec
indexOf start 14941.8 Ops/sec
indexOf end 21642.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end