Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91
Windows 7
Desktop
3 years ago
Test name Executions per second
Native 95140472.0 Ops/sec
Native + toFixed 4638763.0 Ops/sec
decimal.js 458934.9 Ops/sec
big.js 776100.1 Ops/sec
bignumber.js 416651.5 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js