Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140
Linux
Desktop
11 months ago
Test name Executions per second
regex start 368.9 Ops/sec
startsWith 7208.3 Ops/sec
regex end 313.2 Ops/sec
endsWith 7180.4 Ops/sec
indexOf start 7183.1 Ops/sec
indexOf end 7169.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end