Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36 EdgA/126.0.0.0
Chrome Mobile 126
Android
Mobile
5 months ago
Test name Executions per second
Native toString() 1050730.2 Ops/sec
Native toFixed(9) 1049405.5 Ops/sec
bignumber.js toString() 100844.5 Ops/sec
bignumber.js toFixed(18) 100165.9 Ops/sec
big.js toString() 102879.7 Ops/sec
big.js toFixed(18) 92430.5 Ops/sec
decimal.js toString() 83421.8 Ops/sec
decimal.js toFixed(18) 79191.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Native toString()

  • Native toFixed(9)

  • bignumber.js toString()

  • bignumber.js toFixed(18)

  • big.js toString()

  • big.js toFixed(18)

  • decimal.js toString()

  • decimal.js toFixed(18)