Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69
Windows
Desktop
5 years ago
Test name Executions per second
regex start 596.2 Ops/sec
startsWith 367.8 Ops/sec
regex end 542.6 Ops/sec
endsWith 370.1 Ops/sec
indexOf start 243.6 Ops/sec
indexOf end 242.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end