Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.99 Mobile Safari/537.36
Chrome Mobile 86
Android
Mobile
4 years ago
Test name Executions per second
regex start 214.1 Ops/sec
startsWith 100.8 Ops/sec
regex end 206.7 Ops/sec
endsWith 101.0 Ops/sec
indexOf start 462.7 Ops/sec
indexOf end 86.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;