Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Ubuntu
Desktop
2 years ago
Test name Executions per second
toLocaleString 25496.4 Ops/sec
Intl.NumberFormat 24519.4 Ops/sec
string split & reduce 1133362.0 Ops/sec
toFixed 6131587.0 Ops/sec
bignumber 399714.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • toLocaleString

  • Intl.NumberFormat

  • string split & reduce

  • toFixed

  • bignumber