Run details:
Mozilla/5.0 (Linux; Android 11; AC2003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
Native 11783647.0 Ops/sec
Native + toFixed 951178.5 Ops/sec
decimal.js 63550.8 Ops/sec
big.js 107088.9 Ops/sec
bignumber.js 65789.8 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js