Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139
Mac OS X 10.15
Desktop
10 months ago
Test name Executions per second
substring 154350160.0 Ops/sec
replace inline regex 40665680.0 Ops/sec
replace compiled regex var 37706572.0 Ops/sec
slice 137379504.0 Ops/sec
brackets and substr (legacy) 154601744.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • replace inline regex

  • replace compiled regex var

  • slice

  • brackets and substr (legacy)