Run details:
Mozilla/5.0 (Android 11; 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 211.4 Ops/sec
startsWith 339.1 Ops/sec
regex end 201.7 Ops/sec
endsWith 310.1 Ops/sec
indexOf start 246.3 Ops/sec
indexOf end 248.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end