Run details:
Mozilla/5.0 (Linux; Android 10; BLA-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
Native 28081916.0 Ops/sec
Native + toFixed 1880540.9 Ops/sec
decimal.js 143479.7 Ops/sec
big.js 223222.3 Ops/sec
bignumber.js 149962.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js