Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Chrome 100
Linux
Desktop
one year ago
Test name Executions per second
Array.prototype.concat 2764418.0 Ops/sec
Lodash concat 1101009.0 Ops/sec
Array.prototype.push.apply() 1403263.0 Ops/sec
spread operator 3453355.0 Ops/sec
cached for + push 503557.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • cached for + push