Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Chrome Mobile 104
Android
Mobile
2 years ago
Test name Executions per second
Native 31843812.0 Ops/sec
Native + toFixed 2003422.0 Ops/sec
decimal.js 162061.2 Ops/sec
big.js 264773.5 Ops/sec
bignumber.js 166522.5 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js