spread vs pop vs shift

Compare spread vs pop vs shift
one month ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Test name Executions per second
spread 10725670.0 Ops/sec
push 20638580.0 Ops/sec
unshift 16428290.0 Ops/sec
Tests:
  • spread

  • push

  • unshift

Open this result on MeasureThat.net