Run details:
Mozilla/5.0 (Linux; Android 12; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
Native 85655032.0 Ops/sec
Native + toFixed 6589979.0 Ops/sec
decimal.js 278946.2 Ops/sec
big.js 474702.1 Ops/sec
bignumber.js 275823.8 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js