Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Linux
Desktop
2 months ago
Test name Executions per second
Native 682086336.0 Ops/sec
Native + toFixed 11560860.0 Ops/sec
decimal.js 676036.6 Ops/sec
big.js 898528.6 Ops/sec
bignumber.js 603740.9 Ops/sec
bigdecimal.js 39445.1 Ops/sec
Fraction.js 709598.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bigdecimal.js

  • Fraction.js