native vs decimal.js vs big.js vs bignumber.jsFastest: native (19.0x faster)
23,087,968 ops/sec
2,236,933 ops/sec
1,238,513 ops/sec
1,214,765 ops/sec
Fastest: native (25.3x faster)
27,910,470 ops/sec
1,417,774 ops/sec
1,375,272 ops/sec
1,101,932 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| native | |
| decimal.js | |
| big.js | |
| bignumber.js |
| Test name | Executions per second |
|---|---|
| ✓ native | 29,068,102 Ops/sec |
| big.js | 2,083,917 Ops/sec |
| decimal.js | 1,448,064 Ops/sec |
| bignumber.js | 1,138,569 Ops/sec |