Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Chrome 89
Linux
Desktop
3 years ago
Test name Executions per second
Native 93111304.0 Ops/sec
Native + toFixed 6641910.5 Ops/sec
decimal.js 531154.7 Ops/sec
big.js 834994.2 Ops/sec
bignumber.js 482314.5 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js