Run details:
Mozilla/5.0 (Linux; Android 10; AC2003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
regex start 245.6 Ops/sec
startsWith 130.0 Ops/sec
regex end 232.1 Ops/sec
endsWith 127.9 Ops/sec
indexOf start 3524.2 Ops/sec
indexOf end 2998.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end