Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
regex start 444.9 Ops/sec
startsWith 394.9 Ops/sec
regex end 485.3 Ops/sec
endsWith 388.1 Ops/sec
indexOf start 294.1 Ops/sec
indexOf end 297.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end