Run details:
Mozilla/5.0 (Linux; Android 10; SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
regex start 227.7 Ops/sec
startsWith 101.5 Ops/sec
regex end 209.3 Ops/sec
endsWith 100.9 Ops/sec
indexOf start 484.2 Ops/sec
indexOf end 82.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end