Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50
Chrome 110
Windows
Desktop
one year ago
Test name Executions per second
toLocaleString 45302.7 Ops/sec
Intl.NumberFormat 42479.7 Ops/sec
string split & reduce 1728576.0 Ops/sec
toFixed 5909902.5 Ops/sec
bignumber 999103.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • toLocaleString

  • Intl.NumberFormat

  • string split & reduce

  • toFixed

  • bignumber