Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Windows
Desktop
one month ago
Test name Executions per second
Native 73116304.0 Ops/sec
Native + toFixed 6195317.0 Ops/sec
decimal.js 697352.7 Ops/sec
big.js 1178687.8 Ops/sec
bignumber.js 723895.8 Ops/sec
currency.js 438439.8 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • currency.js