Latency of two concurrent lookups plus a generation call

FDE-AI Latency, Token Economics & Batch Systems Medium Question 18 of 24

A request makes two independent lookups taking 400 ms and 700 ms, then a 900 ms generation call. Ignore overhead and assume those durations stay unchanged.

What is the latency after running the lookups concurrently?

Show answer and explanation

A1,600 ms

Concurrent lookups take the maximum of 400 and 700 ms, and generation then adds 900 ms, giving 1,600 ms. 2,000 ms sums all three and is the serial baseline the change was meant to beat. 1,300 ms treats the 400 ms lookup as the prerequisite, but the slower branch gates the join. 900 ms assumes retrieval overlaps generation, which it cannot, since the generator needs both results before it starts.

Source: developers.openai.com/api/docs/guides/latency-optimization

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 24 original FDE-AI practice questions