Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/119.0.6045.169 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 119
iOS 17.1
Mobile
one year ago
Test name Executions per second
Native 328008096.0 Ops/sec
Native + toFixed 6758757.5 Ops/sec
decimal.js 755692.4 Ops/sec
big.js 868355.3 Ops/sec
bignumber.js 681280.5 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js