Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Linux
Desktop
10 months ago
Test name Executions per second
toLocaleString 24530.9 Ops/sec
Intl.NumberFormat 24918.7 Ops/sec
string split & reduce 2041439.1 Ops/sec
toFixed 10548373.0 Ops/sec
bignumber 507128.2 Ops/sec
numberWithCommas 1467026.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • toLocaleString

  • Intl.NumberFormat

  • string split & reduce

  • toFixed

  • bignumber

  • numberWithCommas