Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Chrome 92
Linux
Desktop
3 years ago
Test name Executions per second
Native 68232016.0 Ops/sec
Native + toFixed 3014775.5 Ops/sec
decimal.js 300138.8 Ops/sec
big.js 489357.8 Ops/sec
bignumber.js 274679.6 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js