Run details:
Mozilla/5.0 (Linux; Android 9; SM-A530F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.73 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
Native 30424936.0 Ops/sec
Native + toFixed 1994620.9 Ops/sec
decimal.js 148230.0 Ops/sec
big.js 242496.2 Ops/sec
bignumber.js 148635.7 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js