Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Linux
Desktop
one year ago
Test name Executions per second
Native 108463112.0 Ops/sec
Native + toFixed 8197573.5 Ops/sec
decimal.js 716011.1 Ops/sec
big.js 1328593.5 Ops/sec
bignumber.js 712222.9 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js