Script Preparation code:
Tests:
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()
    Custom

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Windows
View result in a separate tab
Custom
1.1M/s
cached Intl.DateTimeFormat.format()
302K/s
cached Intl.DateTimeFormat.formatToParts()
156K/s
new Intl.DateTimeFormat.format()
11K/s
new Intl.DateTimeFormat.formatToParts
11K/s
View exact numbers
Test name Executions per second
Custom 1,130,751 Ops/sec
cached Intl.DateTimeFormat.format() 302,188 Ops/sec
cached Intl.DateTimeFormat.formatToParts() 156,027 Ops/sec
new Intl.DateTimeFormat.format() 10,663 Ops/sec
new Intl.DateTimeFormat.formatToParts 10,600 Ops/sec