Run details:
Mozilla/5.0 (Linux; Android 8.0.0; LG-H990) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36 OPR/67.1.3508.63168
Opera Mobile 67
Android 8.0.0
Mobile
2 years ago
Test name Executions per second
Native 44074452.0 Ops/sec
Native + toFixed 833238.9 Ops/sec
decimal.js 49002.9 Ops/sec
big.js 74547.5 Ops/sec
bignumber.js 46908.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js