Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
substring 112837400.0 Ops/sec
replace inline regex 27449820.0 Ops/sec
replace compiled regex var 27541710.0 Ops/sec
slice 58207900.0 Ops/sec
brackets and substr (legacy) 118077500.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • replace inline regex

  • replace compiled regex var

  • slice

  • brackets and substr (legacy)