Run details:
Mozilla/5.0 (Linux; Android 10; Pixel 2 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
4 years ago
Test name Executions per second
regex start 154.2 Ops/sec
startsWith 73.6 Ops/sec
regex end 148.1 Ops/sec
endsWith 73.1 Ops/sec
indexOf start 285.3 Ops/sec
indexOf end 68.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;