Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 OPR/77.0.4054.203
Opera 77
Mac OS X 10.14.6
Desktop
2 years ago
Test name Executions per second
regex start 252.2 Ops/sec
startsWith 344.9 Ops/sec
regex end 80.9 Ops/sec
endsWith 228.0 Ops/sec
indexOf start 3660.9 Ops/sec
indexOf end 4292.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end