Run details:
Mozilla/5.0 (Linux; Android 10; FP3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.87 Mobile Safari/537.36
Chrome Mobile 97
Android
Mobile
2 years ago
Test name Executions per second
Native 24669974.0 Ops/sec
Native + toFixed 1546169.5 Ops/sec
decimal.js 124022.7 Ops/sec
big.js 203280.6 Ops/sec
bignumber.js 118238.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js