Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69
Fedora
Desktop
5 years ago
Test name Executions per second
regex start 363.8 Ops/sec
startsWith 192.4 Ops/sec
regex end 361.0 Ops/sec
endsWith 192.5 Ops/sec
indexOf start 195.5 Ops/sec
indexOf end 196.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end