Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.42
Chrome 113
Windows
Desktop
one year ago
Test name Executions per second
Map replace 797324.7 Ops/sec
Regex replace 297964.7 Ops/sec
Make array replace 874865.6 Ops/sec
Make unfilled array replace 1241508.8 Ops/sec
Script Preparation code:
Tests:
  • Map replace

  • Regex replace

  • Make array replace

  • Make unfilled array replace