Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135
Windows
Desktop
2 months ago
Test name Executions per second
var 18331590.0 Ops/sec
let 19244368.0 Ops/sec
const 18015466.0 Ops/sec
Tests:
  • var

    AخA
     
    var g = { e: [] }
    g.o = function(x) { g.e.push(...[1,2,3]) }
    g.o()
  • let

     
    let g = { e: [] }
    g.o = function(x) { g.e.push(...[1,2,3]) }
    g.o()
  • const

     
    const g = { e: [] }
    g.o = function(x) { g.e.push(...[1,2,3]) }
    g.o()