Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Chrome 99
Linux
Desktop
2 years ago
Test name Executions per second
regex start 372.4 Ops/sec
startsWith 467.2 Ops/sec
regex end 441.4 Ops/sec
endsWith 615.9 Ops/sec
indexOf start 9203.0 Ops/sec
indexOf end 9163.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end