Run details:
Mozilla/5.0 (Linux; Android 10; HMA-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.185 Mobile Safari/537.36
Chrome Mobile 86
Android
Mobile
4 years ago
Test name Executions per second
regex start 263.2 Ops/sec
startsWith 112.0 Ops/sec
regex end 250.3 Ops/sec
endsWith 112.3 Ops/sec
indexOf start 565.5 Ops/sec
indexOf end 63.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end