Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Native 206544016.0 Ops/sec
Native + toFixed 13963712.0 Ops/sec
decimal.js 1111362.5 Ops/sec
big.js 1790378.0 Ops/sec
bignumber.js 1081098.4 Ops/sec
Option 1 1816960.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • Option 1


;