Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Chrome 90
Linux
Desktop
3 years ago
Test name Executions per second
Native 51240724.0 Ops/sec
Native + toFixed 3517762.5 Ops/sec
decimal.js 282180.7 Ops/sec
big.js 452868.5 Ops/sec
bignumber.js 281644.8 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js