Run details:
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Windows
Desktop
3 years ago
Test name Executions per second
regex start 312.0 Ops/sec
startsWith 445.1 Ops/sec
regex end 299.0 Ops/sec
endsWith 424.3 Ops/sec
indexOf start 340.2 Ops/sec
indexOf end 341.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end