Run details:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A5000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
3 years ago
Test name Executions per second
regex start 162.6 Ops/sec
startsWith 120.4 Ops/sec
regex end 154.4 Ops/sec
endsWith 120.8 Ops/sec
indexOf start 326.4 Ops/sec
indexOf end 85.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end