Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Native 742230912.0 Ops/sec
Native + toFixed 10612883.0 Ops/sec
decimal.js 623068.3 Ops/sec
big.js 782687.3 Ops/sec
bignumber.js 508531.1 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js