native vs decimal.jsFastest: native (39.2x faster)
183,759,072 ops/sec
4,692,306 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 |
| Test name | Executions per second |
|---|---|
| ✓ native | 258,387,280 Ops/sec |
| decimal.js | 6,700,281 Ops/sec |