Script Preparation code:
Tests:
  • for..in + push

  • Object.values() + for + push

  • Object.values() + for

  • Object.values() + map()

  • Object.values() + reduce()

  • Object.keys() + for

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for..in + push
    Object.values() + for + push
    Object.values() + for
    Object.values() + map()
    Object.values() + reduce()
    Object.keys() + for

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121 on Linux
View result in a separate tab
Test name Executions per second
for..in + push 1518141.0 Ops/sec
Object.values() + for + push 2619006.2 Ops/sec
Object.values() + for 2728732.5 Ops/sec
Object.values() + map() 2574164.0 Ops/sec
Object.values() + reduce() 2245099.2 Ops/sec
Object.keys() + for 2152180.0 Ops/sec


;