Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36 EdgA/116.0.1938.75
Chrome Mobile 116
Android
Mobile
one year ago
Test name Executions per second
Native 68689440.0 Ops/sec
Native + toFixed 4062180.2 Ops/sec
decimal.js 351999.2 Ops/sec
big.js 686522.0 Ops/sec
bignumber.js 389116.6 Ops/sec
bigdecimal.js 78444.1 Ops/sec
Fraction.js 754001.1 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bigdecimal.js

  • Fraction.js