Run details:
Mozilla/5.0 (Linux; Android 10; MI MAX 3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.101 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
2 years ago
Test name Executions per second
Native 22925054.0 Ops/sec
Native + toFixed 1468870.0 Ops/sec
decimal.js 132883.5 Ops/sec
big.js 214344.9 Ops/sec
bignumber.js 133701.1 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js