Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
10 months ago
Test name Executions per second
Array.prototype.concat 179.7 Ops/sec
Lodash concat 170.1 Ops/sec
Array.prototype.push.apply() 127.2 Ops/sec
spread operator 53.1 Ops/sec
push spread operator 102.1 Ops/sec
forEach push 139.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • push spread operator

  • Lodash concat

  • Array.prototype.push.apply()

  • spread operator

  • Array.prototype.concat

  • forEach push


;