Run details:
Mozilla/5.0 (Android 11; Mobile; rv:98.0) Gecko/98.0 Firefox/98.0
Firefox Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
substring and substring 9938746.0 Ops/sec
replace inline regex 4271745.5 Ops/sec
replace compiled regex var 4416141.0 Ops/sec
brackets and substring 14735553.0 Ops/sec
brackets and slice 14777454.0 Ops/sec
substring and slice 10428418.0 Ops/sec
brackets and substr (legacy) 14940643.0 Ops/sec
substr and substr (legacy) 10523530.0 Ops/sec
Script Preparation code:
Tests:
  • substring and substring

  • replace inline regex

  • replace compiled regex var

  • brackets and substring

  • brackets and slice

  • substring and slice

  • brackets and substr (legacy)

  • substr and substr (legacy)


;