Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
Reduce (reusing object)
8K/s
Object.fromEntries with Array.map
2K/s
new Map with Array.map
1K/s
Reduce (creating temporary objects)
60/s

Fastest: Reduce (reusing object) (130.3x faster)

View exact numbers
  • Reduce (reusing object): 7,777 ops/sec
  • Object.fromEntries with Array.map: 1,825 ops/sec
  • new Map with Array.map: 1,244 ops/sec
  • Reduce (creating temporary objects): 60 ops/sec

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

Browser OS Engine User Agent When Created
Firefox 139 Windows Benchmark.js Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0 one year ago
Chrome 136 Mac OS X 10.15.7 Benchmark.js Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 one year ago
Chrome 136 Mac OS X 10.15.7 Benchmark.js Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 one year ago
Chrome 132 Mac OS X 10.15.7 Benchmark.js Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 one year ago
Chrome 131 Linux Benchmark.js Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 one year ago
Chrome 126 Windows Benchmark.js Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 2 years ago
Chrome 126 Linux Benchmark.js Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 2 years ago
Chrome 125 Mac OS X 10.15.7 Benchmark.js Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 2 years ago