Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127
Mac OS X 10.15
Desktop
5 months ago
Test name Executions per second
Native 1561860864.0 Ops/sec
Native + toFixed 23090396.0 Ops/sec
decimal.js 1633029.9 Ops/sec
big.js 2212707.0 Ops/sec
bignumber.js 1192611.6 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js