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
push spread operator 99.8 Ops/sec
Lodash concat 170.2 Ops/sec
Array.prototype.push.apply() 132.7 Ops/sec
spread operator 52.9 Ops/sec
Array.prototype.concat 139.2 Ops/sec
forEach push 140.9 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


;