Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
one year ago
Test name Executions per second
regex start 611.5 Ops/sec
startsWith 1119.9 Ops/sec
regex end 568.7 Ops/sec
endsWith 1166.4 Ops/sec
indexOf start 11825.4 Ops/sec
indexOf end 11588.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end