Run details:
Mozilla/5.0 (Linux; Android 9; Infinix X650B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36
Chrome Mobile 79
Android
Mobile
2 years ago
Test name Executions per second
array.splice 3266.4 Ops/sec
for loop 1015.7 Ops/sec
array.splice w/o spread 17608.2 Ops/sec
Script Preparation code:
Tests:
  • array.splice

  • for loop

  • array.splice w/o spread