Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows 7
Desktop
one year ago
Test name Executions per second
regex start 361.4 Ops/sec
startsWith 423.6 Ops/sec
regex end 335.5 Ops/sec
endsWith 432.5 Ops/sec
indexOf start 7617.9 Ops/sec
indexOf end 7633.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end