Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84
Linux
Desktop
3 years ago
Test name Executions per second
Spread operator 3689083.0 Ops/sec
Push with spread operator 2979295.0 Ops/sec
Push with simple for 577674.8 Ops/sec
Script Preparation code:
Tests:
  • Spread operator

  • Push with spread operator

  • Push with simple for