Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.4.1
Mobile
7 months ago
Test name Executions per second
Native 470265184.0 Ops/sec
Native + toFixed 15123511.0 Ops/sec
decimal.js 1791909.4 Ops/sec
big.js 2521303.5 Ops/sec
bignumber.js 1224259.5 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js