Run details:
Mozilla/5.0 (Linux; Android 11; SM-G991B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
Map replace 1287994.0 Ops/sec
Regex replace 974016.8 Ops/sec
Make array replace 1031625.0 Ops/sec
Make unfilled array replace 1830429.0 Ops/sec
Script Preparation code:
Tests:
  • Map replace

  • Regex replace

  • Make array replace

  • Make unfilled array replace