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 163.3 Ops/sec
startsWith 119.9 Ops/sec
regex end 155.0 Ops/sec
endsWith 119.3 Ops/sec
indexOf start 312.3 Ops/sec
indexOf end 84.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end