HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 55 community runs

Desktop Results:
Chrome 45 runs
for...in
18.8M/s
Object.values(obj)
9.4M/s
_.values(obj)
8.5M/s

Fastest: for...in (2.2x faster)

View exact numbers
  • for...in: 18,796,938 ops/sec
  • Object.values(obj): 9,413,552 ops/sec
  • _.values(obj): 8,492,803 ops/sec
Firefox 10 runs
for...in
39.4M/s
Object.values(obj)
29.4M/s
_.values(obj)
6.8M/s

Fastest: for...in (5.8x faster)

View exact numbers
  • for...in: 39,356,624 ops/sec
  • Object.values(obj): 29,372,616 ops/sec
  • _.values(obj): 6,781,224 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
    Object.values(obj)
    _.values(obj)
    for...in

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 29 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Linux
View result in a separate tab
for...in
74.5M/s
Object.values(obj)
46.3M/s
_.values(obj)
12.7M/s
View exact numbers
Test name Executions per second
for...in 74,504,952 Ops/sec
Object.values(obj) 46,331,452 Ops/sec
_.values(obj) 12,704,658 Ops/sec