feat(go): step 2 — per-phase request breakdown via httptrace
Instruments HTTP requests with net/http/httptrace.ClientTrace to capture timestamps for DNS, TCP connect, TLS handshake, TTFB, and body transfer. TLS row is omitted automatically for plain http:// URLs. Output is an aligned text table with a separator before the Total row. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,7 @@ https://example.com (5 samples)
|
||||
|------|---------|--------|
|
||||
| 0 | Project scaffold — directory structure, `go.mod`, minimal binary | ✅ Done |
|
||||
| 1 | Simple total latency — single URL, wall-clock time | ✅ Done |
|
||||
| 2 | Per-phase breakdown — DNS, TCP, TLS, TTFB, transfer (`net/http/httptrace`) | ⬜ Pending |
|
||||
| 2 | Per-phase breakdown — DNS, TCP, TLS, TTFB, transfer (`net/http/httptrace`) | ✅ Done |
|
||||
| 3 | Multiple URLs + `--count`/`-n` — min/avg/max aggregates | ⬜ Pending |
|
||||
| 4 | `--json` output flag | ⬜ Pending |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user