Run details:
Mozilla/5.0 (Linux; Android 10; Mi 9T) 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 58753832.0 Ops/sec
Native + toFixed 1923959.1 Ops/sec
decimal.js 211873.8 Ops/sec
big.js 328821.7 Ops/sec
bignumber.js 205857.1 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js