Test case name | Result |
---|---|
Native toString() | |
Native toFixed(9) | |
bignumber.js toString() | |
bignumber.js toFixed(18) | |
big.js toString() | |
big.js toFixed(18) | |
decimal.js toString() | |
decimal.js toFixed(18) |
Test name | Executions per second |
---|---|
Native toString() | 1050730.2 Ops/sec |
Native toFixed(9) | 1049405.5 Ops/sec |
bignumber.js toString() | 100844.5 Ops/sec |
bignumber.js toFixed(18) | 100165.9 Ops/sec |
big.js toString() | 102879.7 Ops/sec |
big.js toFixed(18) | 92430.5 Ops/sec |
decimal.js toString() | 83421.8 Ops/sec |
decimal.js toFixed(18) | 79191.1 Ops/sec |