Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Windows
Desktop
10 months ago
Test name Executions per second
Native 1188723200.0 Ops/sec
Native + toFixed 12658031.0 Ops/sec
decimal.js 741156.5 Ops/sec
big.js 1037192.6 Ops/sec
bignumber.js 627860.2 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js