Run details:
Mozilla/5.0 (Android 10; Mobile; rv:89.0) Gecko/89.0 Firefox/89.0
Firefox Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
regex start 155.0 Ops/sec
startsWith 277.1 Ops/sec
regex end 157.6 Ops/sec
endsWith 277.7 Ops/sec
indexOf start 187.2 Ops/sec
indexOf end 196.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end