Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Chrome 59
Linux
Other
7 years ago
Test name Executions per second
Spread operator 2765056.0 Ops/sec
Array.prototype.reduce() 549943.1 Ops/sec
Script Preparation code:
Tests:
  • Spread operator

  • Array.prototype.reduce()