Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Chrome 85
Linux
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat 90.3 Ops/sec
Spread operator 1.7 Ops/sec
Array.prototype.push 10378.4 Ops/sec
Array.prototype.push with assignment 10775.9 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Spread operator

  • Array.prototype.push

  • Array.prototype.push with assignment