Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 3a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
Native 38865832.0 Ops/sec
Native + toFixed 2074929.9 Ops/sec
decimal.js 168233.8 Ops/sec
big.js 255185.9 Ops/sec
bignumber.js 163641.9 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js