Run details:
Mozilla/5.0 (Linux; Android 11; M2007J20CG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Mobile Safari/537.36 EdgA/104.0.1293.70
Chrome Mobile 104
Android
Mobile
2 years ago
Test name Executions per second
Native 59499884.0 Ops/sec
Native + toFixed 3834328.8 Ops/sec
decimal.js 274430.6 Ops/sec
big.js 481592.1 Ops/sec
bignumber.js 274288.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js