Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 OPR/113.0.0.0
Opera 113
Windows
Desktop
2 months ago
Test name Executions per second
regex start 313.2 Ops/sec
startsWith 729.1 Ops/sec
regex end 278.3 Ops/sec
endsWith 720.3 Ops/sec
indexOf start 4809.6 Ops/sec
indexOf end 7229.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end