Run details:
Mozilla/5.0 (Linux; Android 9; FIG-LA1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
regex start 56.5 Ops/sec
startsWith 40.4 Ops/sec
regex end 54.0 Ops/sec
endsWith 39.8 Ops/sec
indexOf start 95.8 Ops/sec
indexOf end 26.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end