Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Linux
Desktop
6 months ago
Test name Executions per second
Native 2232930304.0 Ops/sec
Native + toFixed 20358578.0 Ops/sec
decimal.js 1313850.0 Ops/sec
big.js 1775118.4 Ops/sec
bignumber.js 1107357.8 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js