Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Windows
Desktop
one month ago
Test name Executions per second
substring 41346288.0 Ops/sec
replace inline regex 6976869.5 Ops/sec
replace compiled regex var 7035717.5 Ops/sec
slice 41324644.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • replace inline regex

  • replace compiled regex var

  • slice


;