Run details:
Mozilla/5.0 (Linux; Android 10; SM-G960U1) 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 53391472.0 Ops/sec
Native + toFixed 2685740.2 Ops/sec
decimal.js 99452.9 Ops/sec
big.js 248135.0 Ops/sec
bignumber.js 219205.3 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js