Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36
Chrome Mobile 97
Android
Mobile
2 years ago
Test name Executions per second
Native 66608540.0 Ops/sec
Native + toFixed 4720200.5 Ops/sec
decimal.js 303584.9 Ops/sec
big.js 518407.1 Ops/sec
bignumber.js 268899.6 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js