Run details:
Mozilla/5.0 (Android 11; Mobile; rv:88.0) Gecko/88.0 Firefox/88.0
Firefox Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
regex start 37.6 Ops/sec
startsWith 68.7 Ops/sec
regex end 37.0 Ops/sec
endsWith 68.8 Ops/sec
indexOf start 52.6 Ops/sec
indexOf end 53.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;