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)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
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 on Android
View result in a separate tab
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


;