Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 4a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
regex start 232.1 Ops/sec
startsWith 166.2 Ops/sec
regex end 219.2 Ops/sec
endsWith 166.5 Ops/sec
indexOf start 478.1 Ops/sec
indexOf end 112.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end