Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36 OPR/59.1.2926.54067
Opera Mobile 59
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
regex start 51.2 Ops/sec
startsWith 24.2 Ops/sec
regex end 47.1 Ops/sec
endsWith 24.1 Ops/sec
indexOf start 87.4 Ops/sec
indexOf end 21.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end