Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139
Ubuntu
Desktop
10 months ago
Test name Executions per second
replace by regex 6700652.5 Ops/sec
replace via string 4177544.8 Ops/sec
Script Preparation code:
Tests:
  • replace by regex

  • replace via string