szmarczak / http-timer

🕐 Performance timings for HTTP requests
MIT License
192 stars 18 forks source link

Support socket reuse #16

Closed szmarczak closed 4 years ago

szmarczak commented 4 years ago

Currently this looks like this:

{
  start: 1580404096214,
  socket: undefined,
  lookup: undefined,
  connect: undefined,
  secureConnect: undefined,
  upload: 1580404096386,
  response: 1580404096487,
  end: 1580404096496,
  error: undefined,
  abort: undefined,
  phases: {
    wait: undefined,
    dns: undefined,
    tcp: undefined,
    tls: undefined,
    request: NaN,
    firstByte: 101,
    download: 9,
    total: 282
  }
}

Note that phases.request is NaN, while it should be 0.