Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
Firefox 71
Ubuntu
Desktop
5 years ago
Test name Executions per second
regex start 535.9 Ops/sec
startsWith 281.2 Ops/sec
regex end 514.0 Ops/sec
endsWith 279.2 Ops/sec
indexOf start 229.4 Ops/sec
indexOf end 232.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end