Array methods for adding a single element

one month ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Test name Executions per second
Push 11908300.0 Ops/sec
Concat 3.9 Ops/sec
Spread 5.2 Ops/sec
Script Preparation code:
Tests:
  • Push

  • Concat

  • Spread

Open this result on MeasureThat.net