Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
Safari 10
Mac OS X 10.12
Other
8 years ago
Test name Executions per second
array.splice 20903.1 Ops/sec
for loop 5735.0 Ops/sec
array.splice w/o spread 18922.9 Ops/sec
Script Preparation code:
Tests:
  • array.splice

  • for loop

  • array.splice w/o spread


;