Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Mac OS X 10.15
Desktop
2 months ago
Test name Executions per second
substring 150316240.0 Ops/sec
replace inline regex 29234586.0 Ops/sec
replace compiled regex var 30585634.0 Ops/sec
slice 150048384.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • replace inline regex

  • replace compiled regex var

  • slice


;