Run details:
Mozilla/5.0 (Linux; Android 13; 22041211AC Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/104.0.5112.97 Mobile Safari/537.36
Chrome Mobile 104
Android
Mobile
one year ago
Test name Executions per second
Native 111966048.0 Ops/sec
Native + toFixed 5799575.0 Ops/sec
decimal.js 357784.8 Ops/sec
big.js 587844.2 Ops/sec
bignumber.js 391247.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js