Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Native 1006725696.0 Ops/sec
Native + toFixed 12995427.0 Ops/sec
decimal.js 702655.8 Ops/sec
big.js 953268.5 Ops/sec
bignumber.js 589879.9 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js