Tests:

Historical Performance Data aggregated from 66 community runs

Desktop Results:
Chrome 53 runs
array.push
125K/s
set.add
18K/s

Fastest: array.push (7.1x faster)

View exact numbers
  • array.push: 124,971 ops/sec
  • set.add: 17,575 ops/sec
Firefox 13 runs
array.push
127K/s
set.add
14K/s

Fastest: array.push (9.1x faster)

View exact numbers
  • array.push: 126,995 ops/sec
  • set.add: 13,984 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    array.push
    set.add

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0
Firefox 148 on Mac OS X 10.15
View result in a separate tab
array.push
127K/s
set.add
18K/s
View exact numbers
Test name Executions per second
array.push 126,995 Ops/sec
set.add 18,409 Ops/sec