Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
Chrome 94
Linux
Desktop
3 years ago
Test name Executions per second
regex start 340.5 Ops/sec
startsWith 399.8 Ops/sec
regex end 283.8 Ops/sec
endsWith 387.8 Ops/sec
indexOf start 3962.8 Ops/sec
indexOf end 4015.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;