Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
regex start 316.6 Ops/sec
startsWith 511.4 Ops/sec
regex end 305.6 Ops/sec
endsWith 531.2 Ops/sec
indexOf start 4389.8 Ops/sec
indexOf end 6540.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end