Script Preparation code:
AخA
 
var a = Array.from({length: 100000}, () => Math.floor(Math.random() * 40));
var b = new Set(a);
Tests:
  • Push

     
    a.push(191818);
  • Add

     
    b.add(191818);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Push
    Add

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Linux; Android 11; Redmi Note 9 Pro Max) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
Chrome Mobile 98 on Android
View result in a separate tab
Test name Executions per second
Push 4858427.0 Ops/sec
Add 5292813.0 Ops/sec