Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102
Windows
Desktop
2 years ago
Test name Executions per second
toLocaleString 41497.2 Ops/sec
Intl.NumberFormat 39372.7 Ops/sec
string split & reduce 1270295.9 Ops/sec
toFixed 4130478.8 Ops/sec
bignumber 534354.1 Ops/sec
numberWithCommas 1284785.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • toLocaleString

  • Intl.NumberFormat

  • string split & reduce

  • toFixed

  • bignumber

  • numberWithCommas


;