Run details:
Mozilla/5.0 (X11; CrOS aarch64 14268.51.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.77 Safari/537.36
Chrome 96
Chrome OS 14268.51.0
Desktop
3 years ago
Test name Executions per second
Native 28327154.0 Ops/sec
Native + toFixed 1682777.1 Ops/sec
decimal.js 153589.6 Ops/sec
big.js 251574.5 Ops/sec
bignumber.js 150531.0 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js