Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Linux
Desktop
3 months ago
Test name Executions per second
regex start 535.0 Ops/sec
startsWith 1145.2 Ops/sec
regex end 459.7 Ops/sec
endsWith 1109.0 Ops/sec
indexOf start 14335.7 Ops/sec
indexOf end 14480.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end