Run details:
Mozilla/5.0 (Linux; Android 11; SM-G770F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
regex start 284.5 Ops/sec
startsWith 213.0 Ops/sec
regex end 272.6 Ops/sec
endsWith 212.5 Ops/sec
indexOf start 623.7 Ops/sec
indexOf end 141.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;