Run details:
Mozilla/5.0 (Linux; Android 11; SM-A217F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
Native 15228980.0 Ops/sec
Native + toFixed 719439.2 Ops/sec
decimal.js 61107.4 Ops/sec
big.js 90598.5 Ops/sec
bignumber.js 63522.3 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js