Run details:
Mozilla/5.0 (Windows NT 6.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.23 Safari/537.36
Chrome 49
Windows Vista
Desktop
3 years ago
Test name Executions per second
Native 35545664.0 Ops/sec
Native + toFixed 2937732.8 Ops/sec
decimal.js 145784.2 Ops/sec
big.js 140663.8 Ops/sec
bignumber.js 125654.0 Ops/sec
HTML Preparation code:
Tests:
  • Native

  • Native + toFixed

  • decimal.js

  • big.js

  • bignumber.js