Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actual time to first byte metric for HTTP tests? #4074

Open
alexeyr-ci opened this issue Nov 18, 2024 · 0 comments
Open

Actual time to first byte metric for HTTP tests? #4074

alexeyr-ci opened this issue Nov 18, 2024 · 0 comments
Assignees

Comments

@alexeyr-ci
Copy link

Feature Description

https://grafana.com/docs/k6/latest/using-k6/metrics/reference/ and #190 (comment) describe http_req_waiting as

Time spent waiting for response from remote host (a.k.a. “time to first byte”, or “TTFB”).

However, when experimenting with a request where response is intentionally delivered in multiple chunks with a delay between them, it looks like http_req_waiting includes all the time waiting between chunks as well, because http_req_receiving is much smaller than the delays.

I'd like to know the time to the first byte as a proxy for time to the first chunk; currently I have to switch to browser tests for this, and TTFB there ends up being greater than the total http_req_duration for the HTTP test.

This information doesn't seem to be available in Response.timings either.

Suggested Solution (optional)

No response

Already existing or connected issues / PRs (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants