Run details:
Mozilla/5.0 (Linux; Android 11; M2012K11AG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Mobile Safari/537.36 EdgA/95.0.1020.48
Chrome Mobile 95
Android
Mobile
3 years ago
Test name Executions per second
regex start 393.9 Ops/sec
startsWith 478.8 Ops/sec
regex end 378.5 Ops/sec
endsWith 483.2 Ops/sec
indexOf start 5292.9 Ops/sec
indexOf end 5272.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end