Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
regex start 453.4 Ops/sec
startsWith 518.3 Ops/sec
regex end 399.8 Ops/sec
endsWith 508.0 Ops/sec
indexOf start 6078.3 Ops/sec
indexOf end 6002.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;