native vs decimal.js vs big.js vs bignumber.jsFastest: native (18.9x faster)
23,082,614 ops/sec
2,255,826 ops/sec
1,221,351 ops/sec
1,218,349 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 | 16,044,591 Ops/sec |
| big.js | 1,355,502 Ops/sec |
| decimal.js | 860,454 Ops/sec |
| bignumber.js | 765,089 Ops/sec |