Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Fedora
Desktop
2 years ago
Test name Executions per second
Native 1621153920.0 Ops/sec
Native + toFixed 11267569.0 Ops/sec
decimal.js 790329.3 Ops/sec
big.js 957881.2 Ops/sec
bignumber.js 619598.5 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js