Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/120.0.6099.101 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 120
iOS 17.1
Mobile
one year ago
Test name Executions per second
Native 482631680.0 Ops/sec
Native + toFixed 15144474.0 Ops/sec
decimal.js 1459752.5 Ops/sec
big.js 1834692.9 Ops/sec
bignumber.js 1205893.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js