Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Linux
Desktop
4 years ago
Test name Executions per second
regex start 260.9 Ops/sec
startsWith 170.7 Ops/sec
regex end 243.0 Ops/sec
endsWith 191.3 Ops/sec
indexOf start 193.8 Ops/sec
indexOf end 176.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;