Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Linux
Desktop
5 years ago
Test name Executions per second
regex start 434.2 Ops/sec
startsWith 264.3 Ops/sec
regex end 434.2 Ops/sec
endsWith 270.5 Ops/sec
indexOf start 232.6 Ops/sec
indexOf end 221.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;