Measurements for one fixed request workload give the following costs:
Implementation
Startup time
Time per request after startup
A
20 ms
4 ms
B
90 ms
3 ms
Assume a fresh process pays startup once, every request then takes the stated request time, requests run sequentially, and these costs add exactly. Which statements are supported? Select all that apply.
For input sizes beyond those tested, the request timings establish that B remains faster than A.
At exactly 70 requests in one fresh process, B has the smaller predicted total time.
For requests with startup excluded, B has a speedup of about 1.33 relative to A.
For one request in one fresh process, B has the smaller predicted total time.
For 100 requests in one fresh process, B has the smaller predicted total time.
Unlock full course notes by signing up
Separate speedup from time saved
Two implementations process the same image batch under matched conditions. Their median batch times are 84 ms84\ \text{ms}84 ms for A and 56 ms56\ \text{ms}56 ms for B. Using A as the reference, calculate B's speedup factor to two decimal places and its percentage time reduction to one decimal place. Use the supplied medians for both comparisons.
Plan a warmed timing experiment
A team will compare the processing time of two implementations after startup effects have settled. Arrange these experimental stages in order, beginning with study design and ending with reporting the evidence.
Compare searches that stop at different positions
Two implementations search the following eight-entry array for a target identifier:
[14, 27, 35, 48, 63, 72, 86, 91]
Forward searches from the first entry toward the last. Reverse searches from the last entry toward the first. Each implementation performs one equality test per inspected entry and stops immediately when it finds the target. If the target is absent, it inspects all eight entries.
Choose an implementation for a changing job mix
A workload is the collection and mix of jobs to be processed. A document service is choosing between implementations A and B using these measured processing times:
A standard job takes 12 ms with A and 18 ms with B.
A large job takes 80 ms with A and 45 ms with B.