Write Float64Array by index vs Array by index vs Array by push

Test initializing a typed array by index vs generic array by push.
2 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
Test name Executions per second
Write Float64Array by index 2255.9 Ops/sec
Write generic array by index 1631.2 Ops/sec
Write generic array by push 540.5 Ops/sec
Tests:
  • Write Float64Array by index

  • Write generic array by index

  • Write generic array by push

Open this result on MeasureThat.net