Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Native 45047340.0 Ops/sec
Native + toFixed 5672070.5 Ops/sec
decimal.js 432240.5 Ops/sec
big.js 656335.2 Ops/sec
bignumber.js 368928.5 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js


;