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 2233426176.0 Ops/sec
Native + toFixed 20468354.0 Ops/sec
decimal.js 1317851.0 Ops/sec
big.js 1754523.0 Ops/sec
bignumber.js 1131032.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js