array push vs length, to insert elements

4 months ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Test name Executions per second
push 14225540.0 Ops/sec
length 14703440.0 Ops/sec
Script Preparation code:
Tests:
  • push

  • length

Open this result on MeasureThat.net