Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0
Firefox 87
Windows
Desktop
3 years ago
Test name Executions per second
Native 788060416.0 Ops/sec
Native + toFixed 11843058.0 Ops/sec
decimal.js 730373.4 Ops/sec
big.js 977364.4 Ops/sec
bignumber.js 500699.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js