Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140
Linux
Desktop
9 months ago
Test name Executions per second
regex start 910.9 Ops/sec
startsWith 15238.6 Ops/sec
regex end 772.0 Ops/sec
endsWith 16222.2 Ops/sec
indexOf start 15508.4 Ops/sec
indexOf end 20719.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end