Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Linux
Desktop
7 months ago
Test name Executions per second
var 15577103.0 Ops/sec
let 16358471.0 Ops/sec
const 16144414.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()