Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Ubuntu
Desktop
3 years ago
Test name Executions per second
regex start 315.2 Ops/sec
startsWith 335.6 Ops/sec
regex end 344.0 Ops/sec
endsWith 334.0 Ops/sec
indexOf start 267.8 Ops/sec
indexOf end 264.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end