Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Chrome 94
Linux
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 1758633.6 Ops/sec
Lodash concat 659767.2 Ops/sec
Array.prototype.push.apply() 1415116.1 Ops/sec
spread operator 2959700.2 Ops/sec
cached for + push 366973.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push


;