Script Preparation code:
Tests:
  • Intl.NumberFormat

  • toLocalString

  • Custom Formatter

  • Pre-created Intl formatter

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Intl.NumberFormat
    toLocalString
    Custom Formatter
    Pre-created Intl formatter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110 on Linux
View result in a separate tab
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