Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36
Chrome 102
Linux
Desktop
one year ago
Test name Executions per second
regex start 383.6 Ops/sec
startsWith 934.9 Ops/sec
regex end 370.6 Ops/sec
endsWith 940.2 Ops/sec
indexOf start 4900.1 Ops/sec
indexOf end 4893.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end