Run details:
Mozilla/5.0 (Linux; Android 11; SM-G970F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.92 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
3 years ago
Test name Executions per second
regex start 175.4 Ops/sec
startsWith 135.5 Ops/sec
regex end 171.5 Ops/sec
endsWith 136.0 Ops/sec
indexOf start 353.4 Ops/sec
indexOf end 91.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end