Run details:
Mozilla/5.0 (Linux; Android 10; SM-N976V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.101 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
regex start 287.7 Ops/sec
startsWith 127.2 Ops/sec
regex end 270.6 Ops/sec
endsWith 127.4 Ops/sec
indexOf start 619.8 Ops/sec
indexOf end 107.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end