Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Linux
Desktop
3 months ago
Test name Executions per second
Native 1054417984.0 Ops/sec
Native + toFixed 11972691.0 Ops/sec
decimal.js 713875.7 Ops/sec
big.js 860468.7 Ops/sec
bignumber.js 550912.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js