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 133.6 Ops/sec
startsWith 68.3 Ops/sec
regex end 134.0 Ops/sec
endsWith 70.0 Ops/sec
indexOf start 244.8 Ops/sec
indexOf end 70.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end