Run details:
Mozilla/5.0 (Linux; Android 10; RMX1821) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
regex start 116.4 Ops/sec
startsWith 88.2 Ops/sec
regex end 116.1 Ops/sec
endsWith 90.7 Ops/sec
indexOf start 231.1 Ops/sec
indexOf end 67.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end