Script Preparation code:
Tests:

Historical Performance Data aggregated from 21 community runs

Desktop Results:
Chrome 16 runs
cached Intl.DateTimeFormat.format()
944K/s
cached Intl.DateTimeFormat.formatToParts()
395K/s
new Intl.DateTimeFormat.formatToParts
30K/s
new Intl.DateTimeFormat.format()
29K/s

Fastest: cached Intl.DateTimeFormat.format() (32.0x faster)

View exact numbers
  • cached Intl.DateTimeFormat.format(): 944,157 ops/sec
  • cached Intl.DateTimeFormat.formatToParts(): 395,325 ops/sec
  • new Intl.DateTimeFormat.formatToParts: 29,841 ops/sec
  • new Intl.DateTimeFormat.format(): 29,470 ops/sec
Firefox 5 runs
cached Intl.DateTimeFormat.format()
1.0M/s
cached Intl.DateTimeFormat.formatToParts()
507K/s
new Intl.DateTimeFormat.formatToParts
26K/s
new Intl.DateTimeFormat.format()
26K/s

Fastest: cached Intl.DateTimeFormat.format() (40.5x faster)

View exact numbers
  • cached Intl.DateTimeFormat.format(): 1,043,725 ops/sec
  • cached Intl.DateTimeFormat.formatToParts(): 507,245 ops/sec
  • new Intl.DateTimeFormat.formatToParts: 25,829 ops/sec
  • new Intl.DateTimeFormat.format(): 25,758 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new Intl.DateTimeFormat.format()
    cached Intl.DateTimeFormat.format()
    new Intl.DateTimeFormat.formatToParts
    cached Intl.DateTimeFormat.formatToParts()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Mac OS X 10.15.7
View result in a separate tab
cached Intl.DateTimeFormat.format()
2.4M/s
cached Intl.DateTimeFormat.formatToParts()
946K/s
new Intl.DateTimeFormat.formatToParts
60K/s
new Intl.DateTimeFormat.format()
60K/s
View exact numbers
Test name Executions per second
cached Intl.DateTimeFormat.format() 2,403,828 Ops/sec
cached Intl.DateTimeFormat.formatToParts() 946,197 Ops/sec
new Intl.DateTimeFormat.formatToParts 60,430 Ops/sec
new Intl.DateTimeFormat.format() 60,008 Ops/sec