Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0
Chrome 128
Linux
Desktop
2 months ago
Test name Executions per second
regex start 224.7 Ops/sec
startsWith 715.9 Ops/sec
regex end 220.9 Ops/sec
endsWith 714.3 Ops/sec
indexOf start 7112.4 Ops/sec
indexOf end 6996.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;