Run details:
Mozilla/5.0 (Linux; Android 10; Armor 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
2 years ago
Test name Executions per second
regex start 140.2 Ops/sec
startsWith 134.7 Ops/sec
regex end 134.3 Ops/sec
endsWith 135.6 Ops/sec
indexOf start 1666.6 Ops/sec
indexOf end 1659.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;