Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Linux
Desktop
2 years ago
Test name Executions per second
Native 70117768.0 Ops/sec
Native + toFixed 5380154.5 Ops/sec
decimal.js 372332.3 Ops/sec
big.js 635807.3 Ops/sec
bignumber.js 382476.8 Ops/sec
bigdecimal.js 82975.9 Ops/sec
Fraction.js 698622.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bigdecimal.js

  • Fraction.js


;