Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Desktop
4 years ago
Test name Executions per second
regex start 135.1 Ops/sec
startsWith 0.0 Ops/sec
regex end 102.0 Ops/sec
endsWith 0.0 Ops/sec
indexOf start 92.7 Ops/sec
indexOf end 86.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end