Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
Native 121824704.0 Ops/sec
Native + toFixed 16432903.0 Ops/sec
decimal.js 1479532.6 Ops/sec
big.js 2374522.2 Ops/sec
bignumber.js 1422432.4 Ops/sec
bigdecimal.js 369552.6 Ops/sec
Fraction.js 1482935.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bigdecimal.js

  • Fraction.js