Run details:
Mozilla/5.0 (Linux; Android 11; Mi A3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
2 years ago
Test name Executions per second
Native 29433394.0 Ops/sec
Native + toFixed 1593890.6 Ops/sec
decimal.js 144590.3 Ops/sec
big.js 243907.7 Ops/sec
bignumber.js 149307.3 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js