Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Chrome 127
Windows
Desktop
4 months ago
Test name Executions per second
Native 72016928.0 Ops/sec
Native + toFixed 7092947.5 Ops/sec
decimal.js 813720.4 Ops/sec
big.js 1204315.1 Ops/sec
bignumber.js 703846.1 Ops/sec
bigdecimal.js 170621.2 Ops/sec
Fraction.js 1279946.4 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js

  • bigdecimal.js

  • Fraction.js