Run details:
Mozilla/5.0 (Linux; Android 11; 21061119DG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
regex start 170.9 Ops/sec
startsWith 168.7 Ops/sec
regex end 166.7 Ops/sec
endsWith 169.3 Ops/sec
indexOf start 1364.1 Ops/sec
indexOf end 1386.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;