Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Linux
Desktop
7 months ago
Test name Executions per second
Native 42241592.0 Ops/sec
Native + toFixed 5353166.5 Ops/sec
decimal.js 638631.0 Ops/sec
big.js 1065717.9 Ops/sec
bignumber.js 610972.8 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js