Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
10 months ago
Test name Executions per second
for..in + push 194280.0 Ops/sec
Object.values() + for + push 2526595.5 Ops/sec
Object.values() + for 2469543.8 Ops/sec
Object.values() + map() 2260910.0 Ops/sec
Object.values() + reduce() 2332696.8 Ops/sec
Object.keys() + for 1077691.0 Ops/sec
Script Preparation code:
Tests:
  • for..in + push

  • Object.values() + for + push

  • Object.values() + for

  • Object.values() + map()

  • Object.values() + reduce()

  • Object.keys() + for


;