HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bn.js

  • bn.js in-place

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Native
    Native + toFixed
    decimal.js
    big.js
    bignumber.js
    bn.js
    bn.js in-place

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
Test name Executions per second
Native 1370193920.0 Ops/sec
Native + toFixed 13581755.0 Ops/sec
decimal.js 615282.1 Ops/sec
big.js 326783.9 Ops/sec
bignumber.js 338425.5 Ops/sec
bn.js 1029262.7 Ops/sec
bn.js in-place 1087712.1 Ops/sec