Run details:
Mozilla/5.0 (Linux; Android 11; Mi A3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
Chrome Mobile 95
Android
Mobile
3 years ago
Test name Executions per second
Native 27299514.0 Ops/sec
Native + toFixed 1565879.9 Ops/sec
decimal.js 141481.9 Ops/sec
big.js 232618.6 Ops/sec
bignumber.js 144433.3 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js