Run details:
Mozilla/5.0 (Linux; Android 9; SM-N950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
regex start 177.7 Ops/sec
startsWith 174.6 Ops/sec
regex end 168.7 Ops/sec
endsWith 174.1 Ops/sec
indexOf start 1796.6 Ops/sec
indexOf end 1814.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end