Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Linux
Desktop
one year ago
Test name Executions per second
Intl.NumberFormat 57165.7 Ops/sec
toLocalString 59914.4 Ops/sec
Custom Formatter 27621158.0 Ops/sec
Pre-created Intl formatter 2287335.5 Ops/sec
Script Preparation code:
Tests:
  • Intl.NumberFormat

  • toLocalString

  • Custom Formatter

  • Pre-created Intl formatter