Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Linux
Desktop
6 months ago
Test name Executions per second
Native + toFixed 9141247.0 Ops/sec
decimal.js 527179.2 Ops/sec
big.js 884492.0 Ops/sec
bignumber.js 601739.4 Ops/sec
currencyjs 150449.4 Ops/sec
HTML Preparation code:
Tests:
  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • currencyjs