Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 OPR/73.0.3856.400
Opera 73
Windows
Desktop
3 years ago
Test name Executions per second
regex start 327.1 Ops/sec
startsWith 406.4 Ops/sec
regex end 268.9 Ops/sec
endsWith 388.4 Ops/sec
indexOf start 6279.4 Ops/sec
indexOf end 5493.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;