Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Linux
Desktop
7 months ago
Test name Executions per second
Native 235489504.0 Ops/sec
Native + toFixed 15238974.0 Ops/sec
decimal.js 1182879.4 Ops/sec
big.js 2033974.9 Ops/sec
bignumber.js 1095271.6 Ops/sec
bigdecimal.js 222625.2 Ops/sec
Fraction.js 2176850.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bigdecimal.js

  • Fraction.js