Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Native toFixed(9)
39.2M/s
Native toString()
39.0M/s
big.js toString()
382K/s
bignumber.js toString()
357K/s
decimal.js toString()
328K/s
big.js toFixed(18)
327K/s
bignumber.js toFixed(18)
317K/s
decimal.js toFixed(18)
273K/s

Fastest: Native toFixed(9) (143.9x faster)

View exact numbers
  • Native toFixed(9): 39,231,052 ops/sec
  • Native toString(): 39,037,840 ops/sec
  • big.js toString(): 381,951 ops/sec
  • bignumber.js toString(): 357,442 ops/sec
  • decimal.js toString(): 328,054 ops/sec
  • big.js toFixed(18): 326,852 ops/sec
  • bignumber.js toFixed(18): 316,740 ops/sec
  • decimal.js toFixed(18): 272,548 ops/sec

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

Browser OS User Agent When Created
Chrome 149 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 one month ago
Chrome 135 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 one year ago
Chrome 133 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0 one year ago
Chrome Mobile 126 Android Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36 EdgA/126.0.0.0 2 years ago
Chrome 124 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 2 years ago
Chrome 120 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 2 years ago
Mobile Safari 17 iOS 17.2.1 Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1 2 years ago