Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/129.0.6668.69 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 129
iOS 17.6
Mobile
one month ago
Test name Executions per second
split + join 3775050.5 Ops/sec
replace 3181504.5 Ops/sec
replaceAll 3165727.5 Ops/sec
Script Preparation code:
Tests:
  • split + join

  • replace

  • replaceAll