Run details:
Mozilla/5.0 (Linux; Android 9; COL-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
4 years ago
Test name Executions per second
regex start 111.4 Ops/sec
startsWith 65.2 Ops/sec
regex end 109.9 Ops/sec
endsWith 61.7 Ops/sec
indexOf start 205.0 Ops/sec
indexOf end 62.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end