Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.61 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
Native 137743232.0 Ops/sec
Native + toFixed 7372053.0 Ops/sec
decimal.js 506649.4 Ops/sec
big.js 789102.7 Ops/sec
bignumber.js 499777.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js