Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/98.0.4758.97 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 98
iOS 14.8
Mobile
2 years ago
Test name Executions per second
Native 407669344.0 Ops/sec
Native + toFixed 8262985.0 Ops/sec
decimal.js 826682.6 Ops/sec
big.js 1091509.5 Ops/sec
bignumber.js 626970.9 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js