Run details:
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
Chrome Mobile 126
Android
Mobile
2 years ago
Native toString()
1.1M/s
Native toFixed(9)
1.0M/s
big.js toString()
103K/s
bignumber.js toString()
101K/s
bignumber.js toFixed(18)
100K/s
big.js toFixed(18)
92K/s
decimal.js toString()
83K/s
decimal.js toFixed(18)
79K/s
View exact numbers
Test name Executions per second
Native toString() 1,050,730 Ops/sec
Native toFixed(9) 1,049,406 Ops/sec
big.js toString() 102,880 Ops/sec
bignumber.js toString() 100,845 Ops/sec
bignumber.js toFixed(18) 100,166 Ops/sec
big.js toFixed(18) 92,430 Ops/sec
decimal.js toString() 83,422 Ops/sec
decimal.js toFixed(18) 79,191 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: