Run details:
Mozilla/5.0 (Linux; Android 10; moto g(7)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
Native 24684496.0 Ops/sec
Native + toFixed 1477695.1 Ops/sec
decimal.js 122036.5 Ops/sec
big.js 199255.4 Ops/sec
bignumber.js 118005.1 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js