Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43
Chrome 96
Windows
Desktop
3 years ago
Test name Executions per second
Native 169226576.0 Ops/sec
Native + toFixed 9768065.0 Ops/sec
decimal.js 740471.8 Ops/sec
big.js 1200339.8 Ops/sec
bignumber.js 701365.6 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js