Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/128.0.6613.92 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 128
iOS 17.5
Mobile
3 months ago
Test name Executions per second
Native 495002144.0 Ops/sec
Native + toFixed 13201308.0 Ops/sec
decimal.js 1526109.2 Ops/sec
big.js 1911076.6 Ops/sec
bignumber.js 1005147.1 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js