Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763
Edge 18.17763
Windows
Desktop
3 years ago
Test name Executions per second
regex start 9.8 Ops/sec
startsWith 12.3 Ops/sec
regex end 11.1 Ops/sec
endsWith 13.1 Ops/sec
indexOf start 13.5 Ops/sec
indexOf end 12.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end