Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
10 months ago
Test name Executions per second
Native 36122316.0 Ops/sec
Native + toFixed 4811333.5 Ops/sec
decimal.js 439925.8 Ops/sec
big.js 835930.4 Ops/sec
bignumber.js 412464.7 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js