Run details:
Mozilla/5.0 (X11; CrOS x86_64 14588.98.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.59 Safari/537.36
Chrome 101
Chrome OS 14588.98.0
Desktop
2 years ago
Test name Executions per second
Native 150599904.0 Ops/sec
Native + toFixed 11279687.0 Ops/sec
decimal.js 686083.4 Ops/sec
big.js 1135404.4 Ops/sec
bignumber.js 656461.7 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js