Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
5 months ago
Test name Executions per second
regex start 541.5 Ops/sec
startsWith 1100.1 Ops/sec
regex end 451.3 Ops/sec
endsWith 1037.9 Ops/sec
indexOf start 12286.1 Ops/sec
indexOf end 12827.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;