Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Windows
Desktop
one year ago
Test name Executions per second
toLocaleString 25242.0 Ops/sec
Intl.NumberFormat 26910.6 Ops/sec
string split & reduce 1446780.0 Ops/sec
toFixed 8496098.0 Ops/sec
Script Preparation code:
Tests:
  • toLocaleString

  • Intl.NumberFormat

  • string split & reduce

  • toFixed