Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
9 months ago
Test name Executions per second
Native 46045460.0 Ops/sec
Native + toFixed 4980708.5 Ops/sec
decimal.js 351146.5 Ops/sec
big.js 406918.2 Ops/sec
bignumber.js 428785.7 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js