Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Linux
Desktop
one month ago
Test name Executions per second
Native 1839765760.0 Ops/sec
Native + toFixed 20645804.0 Ops/sec
decimal.js 1127632.2 Ops/sec
big.js 1564494.8 Ops/sec
bignumber.js 1022791.6 Ops/sec
bigdecimal.js 69289.4 Ops/sec
Fraction.js 1915052.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bigdecimal.js

  • Fraction.js