DEV Community

Aleksander Sekowski
Aleksander Sekowski

Posted on

A 17 KB CTV tag validates in 350 microseconds, inside a 100 ms bid window.

A 17 KB CTV tag validates in 350 µs on a single thread. That is 0.35% of a 100 ms bid window, and it is 3.5–7% of a 5–10 ms creative-selection budget. A 44 KB tag on the same thread validates in 2,142 µs, which is 2.14% of the 100 ms window and 21–43% of that creative-selection budget. In the pipeline discussion the preprint rounds that 44 KB mean to 2.1 ms, which is the same measurement.

I reported the run in the April 2026 preprint VAST XML Validation at Bid-Time Scale: Latency Analysis and Integration Patterns for Programmatic Video Pipelines (Aleksander Sekowski, DOI 10.13140/RG.2.2.11404.27520). vastlint, in that paper, is an open-source linter with 108 validation rules across VAST 2.0–4.3 at the time of the paper. The IAB Tech Lab publishes the VAST specification and the XSD schemas for 2.0.1 through 4.2, and it does not publish a reference validator. These timings are the Rust core of the linter.

Tag size Per-bid latency Share of a 100 ms window Share of a 5–10 ms creative-selection budget
17 KB 350 µs 0.35% 3.5–7%
44 KB 2,142 µs 2.14% 21–43%

One thread is the delay a bid actually waits for

Per-bid latency is the delay one bid waits. In a typical SSP, each bid is processed on one thread, one goroutine, or one async task, and synchronous validation delays that bid by the full per-bid cost. This article is that latency. A later piece in this series reports the 10-core throughput table, and another reports the XSD comparison on these same files.

The machine was an Apple M4 with 10 cores and 16 GB of RAM, in one controlled session, with no concurrent workload. The binary was Rust 1.87.0, a release build, with opt-level = 3. The method required a warmup and a minimum of 100 iterations, and the published latency means are 100,000 iterations on a single thread. The figure to cite is that mean.

The two corpora bracket the CTV sizes the methodology was built around. The 17 KB corpus is a standard inline tag: impression tracking, companion ads, three to four MediaFile renditions, and click tracking. That shape is common in mid-tier CTV. The 44 KB corpus is a heavy inline tag: extensive tracking pixels, multiple companion sets, many MediaFile renditions, and several impression pixels. That shape is common in premium and network CTV.

A 17 KB validation is 0.35% of a 100 ms window

350 µs is the mean on the 17 KB file. Set against a 100 ms window, the share is 0.35%. I use 100 ms because the results table is a share of a 100 ms bid window, and because 100 ms sits inside the ranges the methodology cites. It does not mean every exchange sets tmax to 100.

Google Authorized Buyers documents OpenRTB tmax from 80–1,000 ms. The methodology's server-side SSP bid-response window is 80–150 ms, drawn from OpenRTB 2.6 and Google. AdtechSchool is the source for a 150 ms end-to-end auction, a 40–80 ms DSP decision pipeline, and a 5–10 ms creative-selection stage, treated there as stage 4 of the DSP decision. The same table lists an SSAI stitch window of 50–200 ms as a practitioner range.

The creative-selection cell is a range because the budget is a range. 350 µs is 3.5% of 10 ms and 7% of 5 ms, which is the 3.5–7% the table prints. The preprint's reading of the 17 KB cost is that it is smaller than the variance of a typical network hop, and that creative selection already spends 5–10 ms on every bid.

A 44 KB validation is 2.14% of 100 ms and up to 43% of creative selection

2,142 µs is the mean on the 44 KB file, from the same 100,000 iterations on the same thread. That is 2.14% of a 100 ms window. The creative-selection share is 21–43%, because 2,142 µs is 21% of 10 ms and 43% of 5 ms. The preprint states this cost as 2.1 ms and says it still sits within the creative-selection budget at most exchanges: about a fifth of a 10 ms stage, and 43% of a 5 ms stage. When 2 ms of inline latency is unacceptable, the preprint points to an async sidecar that runs the same validation without blocking the bid path. The latency figure here remains 2,142 µs.

The corpora model CTV structure and leave out the pathological tail

The templates were based on de-identified production VAST from CTV ad serving. URLs, tracking domains, creative identifiers, and any other field that could identify a demand partner or a publisher were replaced with synthetic values. Tag structure, element nesting, attribute patterns, and field counts follow that production shape. Field content was varied programmatically across the generated files so the benchmark would not ride branch prediction on one repeated document. The generation scripts are in the repository linked below.

The files cover the nesting, attributes, and size range common in mid-tier and premium CTV. They do not capture the long tail that accounts for the highest failure rates in production: deeply nested wrappers, truncated XML from timeout conditions, binary-encoded companion assets, and tags that mix elements from several VAST versions in non-standard ways. Latency on those tags may differ from 350 µs and from 2,142 µs. The 17 KB and 44 KB sizes were chosen from my experience with CTV ad serving. They bracket a range I recognize in that inventory. The benchmark measures that synthetic range.

One Apple M4 produced every latency figure here

Every mean above comes from that single configuration: Apple M4, 10 cores, 16 GB of RAM, one session, nothing else running. I did not repeat the run on x86-64, on an ARM server, or on a cloud VM, and results on those architectures will differ. The 350 µs and 2,142 µs figures are single-thread means on that machine.

How you would check a tag

The 350 µs path is the library on a local file, one thread, with no network hop inside the measurement. If you have a tag and want the findings from the same rule set, two pages on vastlint.org run it outside a bid pipeline.

The tester takes a live tag URL and shows a preview. The inspector follows wrapper hops. A page load includes DNS, TLS, and the browser, so it is not a reading of the M4 mean. The rule count to keep in mind is 108, the count at the time of the paper. vastlint is an independent linter. It is not a reference validator shipped by the IAB.

The preprint is on ResearchGate. The PDF and the research page carry the same text. Code and corpus scripts are at github.com/aleksUIX/vastlint.

Top comments (0)