Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Linux
Desktop
one year ago
Test name Executions per second
regex start 475.7 Ops/sec
startsWith 890.7 Ops/sec
regex end 440.6 Ops/sec
endsWith 814.1 Ops/sec
indexOf start 7570.1 Ops/sec
indexOf end 7602.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end