In a continuous operation video analytics GPU deployment, the figure that matters is sustained cost per analysed stream. You only get that figure after decode, preprocessing, batching, inference, post-processing and host orchestration have each been measured under load. In published measurements of real pipelines, the neural network is often not the expensive part: preprocessing, post-processing and the host code feeding the GPU can cost more than inference. Our position is to profile before optimising, because rules like “batch everything” or “decode on the GPU” only hold in the context a profile shows. Whether the final number justifies the hardware is covered in when GPU video analytics pays off. What follows is the measurement that decision depends on.
GPU Video Analytics Under Continuous Load, One Stage at a Time
A published case study of FlockFocus describes a multi-camera pipeline that monitors broiler chicken welfare on commercial farms and processes terabytes of video a week. It is written in Python with PyTorch, OpenCV, scikit-image and ONNX Runtime GPU, and although those libraries use GPU acceleration, the pipeline as a whole ran sequentially. All measurements were taken on an AWS g4dn.2xlarge instance with one NVIDIA T4, 8 vCPUs and 32 GB of memory.
Worked Example: Where the Milliseconds Went
| Measurement (detection path, per frame) | Default pipeline | After optimisation |
|---|---|---|
| Preprocessing | 8.8 ms | not reported separately |
| Inference | 6.9 ms | not reported separately |
| Post-processing | 40.2 ms | 11.4 ms |
| Total detection cost | 55.8 ms | 26.3 ms |
| Processing cost per video on g4dn.2xlarge | $0.691 | $0.312 |
The arithmetic is the important part. Inference took 6.9 ms of a 55.8 ms frame, roughly an eighth (6.9 ÷ 55.8 ≈ 0.12). The win came from rewriting post-processing, running detection in parallel, batching on the GPU and parallelising the tracker, which gave the drinker pipeline a 2.1× speedup (660 s down to 314 s). Across the pipeline the authors report up to a 2× cut in processing time with minimal loss in detection and behaviour-classification accuracy, and a cost reduction of over 50% per run.
Each lever ran out at a measurable point. With batch sizes up to 16, inference time per frame fell from about 6.6 ms to 2 ms, and GPU memory peaked at 2301 MiB; beyond 16, inference time rose again because of memory pressure. Going from one to four parallel detection processes cut detection time by 47% and raised GPU utilisation from around 20% to over 50%, but beyond four jobs the gains were marginal. Post-processing steps such as connected-component analysis stayed CPU-bound, so adding workers raised CPU load and the speedup plateaued. At one process GPU utilisation was only around 20%, a small-scale version of the hidden cost of GPU underutilisation.
Decode was a lever too. Dropping H.264 from 1080p to 720p more than halved decoding latency without hurting accuracy, while MJPEG decoded fastest but introduced artefacts that slightly weakened detection in low-light or occluded regions.
When Preprocessing Costs More than the Model
Smol, a study that jointly optimised preprocessing and DNN execution, also found preprocessing to be the bottleneck. ResNet-50 throughput improved 28× on the inference-optimised T4, and on a g4dn.xlarge instance CPU preprocessing then needed about 2.3× the power and 11× the cost of DNN execution. Decoding JPEGs alone ran slower than ResNet-50 execution, and the full preprocessing chain achieved 7.1× lower throughput than the model, rising to 22.9× for ResNet-18. Priced per hour, preprocessing came to $2.37 against $0.218 for DNN execution in that configuration.
This finding is also where standard advice breaks down. The Smol authors note that DNN compilers such as TensorRT cannot jointly optimise preprocessing, so the more efficient the compiled model becomes, the larger the preprocessing bottleneck grows. On such a pipeline, a faster model alone leaves the preprocessing bottleneck in place. Nexus, a GPU cluster engine for DNN video analysis, measured the same effect from the scheduling side: running roughly 10 ms of preprocessing in series with roughly 6 ms of ResNet-50 forwarding left about half the GPU’s cycles idle under a 50 ms SLO. The Nexus authors also observed that saturating one GPU usually took four to five CPU cores.
Once a profile like this exists, the next questions are where each stage should run and how many streams one GPU can then carry. Both are covered in stage placement and stream capacity.
Why Can’t a Vendor’s GPU Benchmark Be Trusted for a Serving-Cost Decision?
A performance number is only as trustworthy as the environment it was measured in, including clock state and thermal throttling. NVIDIA’s own TensorRT benchmarking guide says trtexec leaves out host-to-device and device-to-host transfers by default, feeds random input values, and needs separate techniques to time pre- and post-processing.
LynxBenchAI publishes independent device results for the public PyTorch stack, a broadly indicative first filter for which accelerators deserve a test run; it does not run or measure your pipeline. The first step is to read the published LynxBenchAI device results for your candidate devices and drop the ones that cannot hold your model at all.
Standard suites such as MLPerf Inference give comparable numbers across vendors. In our view they only answer your question when the suite’s model family, batch size and precision match your workload. Otherwise you need a reproducible harness built on your own pipeline. The same argument for benchmarking GPUs against your own workload rather than marketing figures applies here.
Hardware decode is an example of a generic claim that fails in some contexts. NVIDIA’s NVDEC application note says that fully offloading decode to NVDEC frees the graphics engine and CPU for other work. The TorchAudio NVDEC tutorial found that hardware decoding is slower than software at low resolutions such as QVGA and faster at higher resolutions such as XGA. The result also depends on the GPU: at VGA, hardware decode was slower on V100 and A100 and faster on A10. In that tutorial’s runs, XGA hardware decode-and-resize reached 1480 fps against 847 fps for FFmpeg software scaling, while at VGA software scaling reached 1333 fps against 612 fps for the hardware path. Offloading decode also leaves host work behind. The CPU still parses bitstream headers, allocates pinned memory, submits packets over PCIe and synchronises with the decoder.
Building a Benchmark Workload That Looks Like Live Traffic
We would build a representative workload around production’s stream count, codec and resolution, frame-sampling rate, latency SLO and burst behaviour. Batch size and concurrency should be measured as a curve, not chosen once. Nexus found batched execution latency often fits a straight line, batch_lat(b) = αb + β, where β is the fixed invocation cost that larger batches spread out. On a GTX 1080, batch size 32 improved throughput 4.7-13.3× over individual execution for VGG, ResNet and Inception. Latency is the price. RegenHance measured that batching can add up to 75 ms to the earliest frame in a batch, while still lowering average latency per chunk. When frames arrive in bursts, the runtime also has to decide which requests to batch and which to drop.
Inputs need the same care. The TensorRT guide notes that GPU power draw depends on activation values, so all-zero inputs draw less power than realistic frames because they cause fewer bit-flips in DRAM and L2 cache. For an FP16 against INT8 comparison, we would run both engines on identical frames with identical pre- and post-processing. We would also pin the framework, CUDA, cuDNN and driver versions, so that the accuracy and latency delta reflects only the engine. RegenHance’s execution planner profiles a new device in about one to three minutes on a user-specified stream sample.
Reporting p99 and Run-to-Run Variance so a Single-Digit Gain Survives Review
NVIDIA’s TensorRT guide warns that two runs of the same engine on the same GPU can differ by tens of percent if the clock floats in one run and is locked in the other, or if thermal throttling starts partway through. Power throttling is expected on lower-power parts such as the T4 and A2. Locking the clock at a lower frequency stabilises the numbers at the cost of a lower average. Gaps between inferences in a home-made harness skew results too, because a fully loaded GPU runs at a lower clock than one that idles between calls. The guide uses throughput and median latency as its comparison metrics, and trtexec also reports 90th, 95th and 99th percentiles.
A 4% improvement is only believable when the run-to-run spread is known to be smaller than 4%. Before trusting a result, we check each item below.
- Warm-up runs are excluded from the timed window.
- Clock policy (locked or floating) is recorded, and GPU status is logged during the run.
- The GPU is exclusive to the benchmark (a dedicated instance or MIG slice), not shared with other tenants.
- The synchronisation mode is stated, since blocking sync lowers CPU use but makes latency measurements less stable than spin-wait.
- Median and p99 are reported per run, with a confidence interval across repeated runs.
- Software versions and input data are pinned, and the benchmark is re-run whenever a driver or framework changes.
How Do You Normalise GPU Results Across Precision, Batch Size, Driver and Serving Stack?
Raw numbers from two vendors are not comparable until precision, batch size, driver and runtime versions and quantisation are disclosed, and then either matched or explicitly normalised. For a high-stakes decision, re-running a matched subset yourself is more defensible than adjusting published configurations after the fact.
TechnoLynx’s Inference Cost-Cut Pack starts by agreeing which variables your decision needs held constant. It then re-runs a matched subset of configurations on your pipeline and reports which gaps come from the hardware and which from the software stack.
| Goal | Approach |
|---|---|
| Sanity check before publishing a chart | Compare the ranking against known device characteristics; a datacentre part losing on raw throughput needs an explanation before it is shown |
| Bounding a config-versus-hardware gap without time to re-run | Look for an existing matched measurement (MLPerf or similar) on comparable hardware and model |
| Procurement, lease or investment committee | A documented normalisation method, plus a matched re-run at common precision, batch and stack |
| Suspicion the SDK, not the silicon, is holding results down | Kernel-level profiling before concluding the hardware is deficient |
Vendor-specific APIs are not inherently faster than standard ones. They expose lower-level features that allow deeper optimisation, but that only pays off after real engineering commitment. A weak result on a young toolchain is therefore a statement about the toolchain until a profile says otherwise. The choice of normalisation metric (per watt, per dollar, per request) can reorder the ranking, so state it next to the chart.
Separating GPU Performance from Host CPU, PCIe and Virtualisation Overhead
trtexec itself reports host walltime against GPU compute time. If total GPU compute time is much shorter than total host walltime, the GPU can be underused because of host-side overhead or data transfers. Comparing reported enqueue time with GPU compute time, and disabling CUDA graphs with --noCudaGraph, shows whether a workload is enqueue-bound on the deployment system. The TensorRT guide suggests starting with --dumpProfile to find the most expensive layers, then moving to Nsight Systems to see why they are expensive at the kernel and stream level.
NVIDIA describes Nsight Systems as exposing GPU starvation, unnecessary synchronisation and insufficient CPU parallelism or pipelining. One example NVIDIA shows is a cudaStreamSynchronize issued straight after cudaMemcpyAsync when the stream already enforces ordering, which costs time for nothing. NVTX ranges let a pipeline mark its own phases on the timeline, and TensorRT uses NVTX to map each layer to its kernels. One trap: a CPU blocked in cudaStreamSynchronize looks idle while the GPU is busy, so read the CUDA hardware rows, not only CPU activity.
When streams greatly outnumber CPU cores, host-side scheduling becomes the bottleneck. One thesis benchmarked 8, 16, 32 and 64 concurrent streams on an AMD EPYC and NVIDIA A2 platform. Replacing a properly optimised threaded baseline with a thread-per-core coroutine design gave up to 13.6% higher throughput, 365× fewer CPU migrations, 2.48× fewer context switches and 16.9% less total CPU work. The same thesis cites the Nimble work by Kwon et al. showing that host-side scheduling and synchronisation to dispatch CUDA kernels often takes longer than the GPU execution itself. Host-to-device copies over PCIe can also become the bottleneck. The mechanics of that are covered in CPU/GPU stage boundary costs. On a cloud instance, we would run the same engine with and without --includeDataTransfers on each instance type. A gap that appears on only one type points at the host or virtualisation layer, not the GPU.
Should Accuracy at the Operating Point Be Its Own Column?
Yes: we would report quality as its own column, measured at the throughput point you actually ran, not the one in the benchmark. A blended speed-and-quality score hides exactly the trade-off a reviewer needs to see. RegenHance shows why. On an RTX 4090 or A100 it served ten object-detection streams (300 fps) at 91% accuracy, and only six streams once the target rose to 95%. Smol reports its throughput gain, up to 2.5×, at a fixed error level. We would show three things side by side: raw throughput, accuracy at that throughput, and throughput at a fixed quality target.
Sizing GPU Compute Against a Fixed Budget
With a fixed budget, the question changes from “which GPU is fastest” to “what is the lightest configuration that meets the throughput and latency target”. Answer it by benchmarking the candidate configurations on the real workload.
LynxBenchAI’s published device results are a cheap first filter here: they show which devices handle the public PyTorch stack well enough to be worth a test run on your budget. Engineering help for the tuning that follows is part of the Inference Cost-Cut Pack. Instance-level steps are laid out in how to size GPU instances for a video-analytics workload.
Can We Clear the Backlog on the GPU Server We Already Have?
The first levers to try are the input and the model, before more hardware. Smol found that decoding low-resolution data is cheaper than decoding full resolution and downsampling. In its example, ResNet-50 on 161×161 thumbnails outperformed ResNet-34 on full-resolution input because preprocessing set the end-to-end limit. The farm-video study chose H.264 at 720p. A lighter detector, batched on the existing hardware, is the other lever. We would validate its accuracy on the defects or tags that matter, using the backlog’s own distribution.
Which Instance Family Holds Real-Time Latency Through a Spike?
Pick the instance family with the lowest steady-state cost that still meets the latency SLO in a spike benchmark, not just at steady load. Whether more small replicas beat fewer large instances depends on traffic shape. Only a spike benchmark settles it. Nexus re-plans allocation and batch sizes every 30-60 seconds and triggers a new epoch on large workload changes. Autoscaling policy itself is a separate design problem from the benchmark.
Cloud Burst, Shared Cluster or Workstation for Batch Science Jobs
The same logic applies to batch scientific workloads such as docking or structure prediction. The number that decides it is GPU-hours per job, measured on representative runs.
How Should You Benchmark Candidate GPUs for Your Workload Instead of Comparing Spec Sheets?
No GPU or instance wins for every pipeline. The decision comes from running your own model, at your batch size and precision, on two or three candidates and comparing throughput, latency, memory headroom and cost per unit of work.
TechnoLynx’s GPU Performance Engineering work runs a scaled-down version of your pipeline across a shortlist of accelerator and runtime combinations, confirms quality parity, and hands over the harness so you can re-run the comparison when drivers or candidates change. The first step is capturing your model, targets and budget constraints.
Comparing Two GPUs on Your Own Pipeline, in Order
- Remove candidates that fail hard constraints: VRAM for the model and batch, latency target, budget, availability.
- Shortlist two or three realistic options, using published device results to decide which deserve a run.
- Run the same pipeline on each, with pinned versions and identical inputs, recording throughput, p99 latency, memory and power per unit of work.
- Choose on cost per unit of work and the metric that matters most for the decision. Take the cheaper option unless the premium one’s headroom changes what is feasible.
Some spec-sheet differences affect aggregate capacity rather than single-stream speed. Certain GPU variants carry two or three NVDEC engines, and NVIDIA’s driver load-balances across them, which raises aggregate decode capacity without code changes. NVIDIA also states that NVDEC throughput scales with the video clock reported by nvidia-smi. Interconnect such as NVLink matters once the workload is split across devices.
Vendor figures are worth reproducing rather than adopting. NVIDIA reports that an eight-L4 2U server delivers roughly 6× the aggregate VMAF throughput of a dual Xeon 8480 server at the same power draw, cutting cost per VMAF frame by up to 75%. The same NVIDIA post reports that Snap saw a 2.5× processing-time speedup running VMAF-CUDA on g4dn.2xlarge T4 instances. The gap between the two figures is the point: a deployment on different hardware, in a different pipeline, got a different number. Folding quality scoring into an existing GPU transcode is a separate design, covered in combining GPU transcoding and GPU analytics in one pipeline. We would confirm rented-instance results on a dedicated node matching the hardware you will own.
Turning Throughput and Latency into One Cost per Analysed Stream-Hour
The common unit is cost per unit of useful work: the hourly price of the configuration divided by the sustained units it completes per hour at the agreed quality target and latency SLO. For video, the unit is an analysed stream-hour or a frame. A transcoding or quality-monitoring bid can be normalised the same way, as cost per stream-hour at a fixed resolution and VMAF target.
TechnoLynx builds this model from your profile as part of the Inference Cost-Cut Pack. It turns measured throughput, cost and power into cost per stream-hour or per request, and reports it in a vendor-neutral comparison your procurement process can audit.
The denominator is where earlier visual-analytics cost models went wrong. When stages are pipelined, sustained throughput is bounded by the slowest stage, and the Smol authors show that cost models which ignore preprocessing or pipelining estimate throughput inaccurately. Under full load, Smol measured 5.9k images per second for preprocessing, 4.2k for DNN execution and 3.6k end to end, within 16% of its cost model’s prediction. A per-stage cost attribution like Smol’s ($2.37 per hour for preprocessing against $0.218 for the DNN) tells you which stage’s capacity you are actually buying.
The baseline has to be costed the same way. A CPU-only path, or a manual inspection process being automated, needs its full cost (including rework and missed defects on the manual side) before any comparison is fair. Site constraints such as a fixed power envelope belong in the model, not in a footnote. The price-per-camera decision built on top of this unit is covered in when GPU video analytics pays off.
Ranking a Shortlist by Sustained Throughput per Dollar, Not Peak
Rank candidates by sustained throughput per dollar on your own workload, measured over repeated runs. Report power draw next to it, or fold it into total cost of ownership. Peak and sustained throughput differ in ways that affect cost. NVIDIA notes that a fully loaded GPU with no gaps between inferences runs at a lower clock, which is why trtexec is designed to leave almost no gaps when it measures throughput.
LynxBenchAI publishes device results for the public PyTorch stack that help decide which shortlisted devices deserve a sustained run; that run on your own model still has to happen on the candidate hardware. The first step is to check its results for each candidate.
Power has to be measured under the same sustained load as throughput, or the per-watt figure is not comparable. Price terms (spot, committed, discounted) can reorder a per-dollar ranking without any change in the hardware.
Who Can Profile Our Video-Analytics Pipeline Before We Commit to More GPUs?
TechnoLynx profiles your running video-analytics pipeline before anything is optimised. The engagement is the Inference Cost-Cut Pack: an audit on-ramp, then a 4-8 week optimisation sprint on the workload you run. A specialist earns its fee on a one-off, high-stakes decision. When choosing a partner, ask for the per-stage table, pinned versions and a harness you keep. Our wider work for teams running GPU-backed products is described under AI for AI infrastructure and production SaaS. In a published case study on cryptocurrency mining (a different workload, but the same profile-before-investing reasoning), our analysis found the GPU code already close to hardware limits, particularly DRAM bandwidth, and the client redirected resources on the strength of that independent analysis.
If you only need a hardware shortlist, LynxBenchAI’s published results may be enough.
What a Five-Minute Benchmark Cannot Tell You About a 24-Hour Shift
Several of the studies above measure runs of minutes. The farm-video evaluation used five-minute clips, and RegenHance plans from about a minute of stream. Nexus is the exception: in a long-running multi-application deployment it stayed within 84% of optimal utilisation and violated latency SLOs on 0.27% of requests across 100 GPUs. The studies above do not report how a single analytics node behaves over days (thermal settling, clock drift, slowly rising queue depth). The TensorRT guide does document power throttling on low-power cards like the T4 and A2. Before calling a per-stream cost figure production-grade, we would run and validate the profiled pipeline long enough for clocks and temperatures to stabilise, with nvidia-smi logged alongside. The per-stream cost from that long run is the one to use in the price-per-camera decision described in when GPU video analytics pays off.