Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Native 825467712.0 Ops/sec
Native + toFixed 12685814.0 Ops/sec
decimal.js 675564.0 Ops/sec
big.js 858683.9 Ops/sec
bignumber.js 565930.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js