Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79
Ubuntu
Desktop
4 years ago
Test name Executions per second
regex start 365.5 Ops/sec
startsWith 291.4 Ops/sec
regex end 349.2 Ops/sec
endsWith 285.4 Ops/sec
indexOf start 233.8 Ops/sec
indexOf end 255.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end