Run details:
Mozilla/5.0 (Linux; Android 10; SNE-LX1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
regex start 146.2 Ops/sec
startsWith 104.9 Ops/sec
regex end 141.0 Ops/sec
endsWith 105.2 Ops/sec
indexOf start 262.0 Ops/sec
indexOf end 74.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end