Skip to content

Test the latency harness and fix a zero-rounded TTFT being dropped - #41

Merged
huangxinV587 merged 1 commit into
mainfrom
branch/ds-deploy-pool-20261107-r1
Nov 8, 2026
Merged

huangxinV587 merged 1 commit into
mainfrom
branch/ds-deploy-pool-20261107-r1

Conversation

@huangxinV587

Copy link
Copy Markdown
Contributor

Follow-up to #40.

if first_any treated a first token that rounds to 0.0 s as missing, so a fast endpoint reported a null TTFT; the TPOT aggregation used the same truthiness test. Both now compare against None.

tests/test_bench.py drives the harness against a scripted SSE server, so it needs no accelerator: it covers both thinking-field spellings, a thinking-only stream leaving the content clock unset, header-only bearer auth, per-request failure counting, payload assembly for snippets/haystack/images/tools/response_format, receipt de-hosting, and that every shipped case loads with a unique id.

tools/bench/config.example.json gives a run a place to record the serving configuration next to its numbers. 243 tests pass.

The first streamed token can round to 0.0 s against a low-latency endpoint.
`if first_any` then treats that measurement as "never arrived" and the run is
reported with a null TTFT; the TPOT aggregation had the same truthiness test.
Both now compare against None, so a fast first token survives.

Add tests that exercise the harness without any accelerator: a scripted SSE
server covers the two thinking-field spellings, a thinking-only stream that
must leave the content clock unset, header-only bearer auth, per-request
failure counting, and the fact that receipts carry no host address.

Also ship tools/bench/config.example.json so a run can record the serving
configuration next to its numbers instead of in a separate note.
@huangxinV587
huangxinV587 merged commit eeb2fa2 into main Nov 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant