How do latency and response time differ in a performance test?
Answer
Use the tool's metric definition rather than assuming every product uses the words identically. Conceptually, latency usually refers to delay before useful response data begins to arrive, while end-to-end response time covers the full measured request-to-response interval. For an interview answer, define the measurement boundary explicitly and then name the actual metric your tool records.
Strong answer includes
- defines the measurement boundary instead of using vague synonyms
- recognizes tool-specific terminology
- connects the metric to what the user or protocol actually experiences
Practical example
If a tool separates time-to-first-byte from total HTTP duration, say exactly which one you are discussing. That prevents a team from comparing two numbers with different start or end points.