Real-time object detection turns a camera stream into detections fast enough that whatever acts on them is still acting on the present. Each frame is pre-processed (resized and normalised), run through the detector and filtered by post-processing such as non-maximum suppression (NMS). So a model-level speed figure does not answer the real question in real-time object detection on GPU vs CPU: what are the trade-offs for a given pipeline? You only find that out by measuring the whole pipeline. A model can show better execution latency without a matching rise in end-to-end throughput once video I/O, host-side processing and runtime overhead are counted. A GPU is considerably faster than a CPU at convolution arithmetic. Host-device copies and post-processing can still become the bottleneck.
We cover the gap between a demo and a deployment in why off-the-shelf computer vision models fail in production. Detection looks like a solved problem until real conditions, edge cases and throughput requirements show up.
How Does Real-Time Object Detection Work, and What Does It Mean in Practice?
A modern single-stage detector runs in three stages. Pre-processing resizes and normalises the image, the neural network runs inference, and post-processing (usually NMS) cleans up the output. NMS uses a confidence threshold and an IoU threshold to discard overlapping boxes, so its execution time depends on how many boxes the network produced and how those thresholds are set. Newer designs such as YOLOv10, RT-DETR and YOLO26 are trained to return one box per object, which removes NMS at inference. If that architectural choice is the decision you actually face, it is weighed in RT-DETR vs YOLO for production inspection pipelines.
The detector also sits inside a larger chain. In their analysis of Darknet YOLO, the R-TOD authors split end-to-end delay into capture, transfer, queue, fetch, inference and display, and inference is only one of those six. They define end-to-end delay as the time from an object physically appearing (a traffic signal changing, a pedestrian stepping out) until its first detection is reported.
A 2026 edge benchmark defines real-time as sustained end-to-end throughput of at least 25 FPS across decoding, pre-processing, inference and post-processing. That works out to an average budget of 40 ms per frame. We would add two more numbers to any production specification: a latency percentile, and the miss rate the team agrees to accept in order to hit the rate.
What’s Worth Understanding About Real-Time Object Detection First?
Throughput and latency are different quantities, and a detection system can do well on one and badly on the other. NVIDIA’s TensorRT documentation defines latency as the time from an input being presented until its output is available, and throughput as inferences completed per unit time. It also offers a useful third framing: fix a maximum acceptable latency and measure throughput under that ceiling.
A 2026 study of fruit detection on an NVIDIA Jetson Orin Nano Super shows the split in practice. The full detector, tracker and analytics pipeline reached 44.96 to 54.11 FPS at maximum throughput and kept up with a 30 FPS input. Yet each frame spent 121.0 to 156.1 ms between the decoder and the tracker. Both numbers hold at once because decode, inference, tracking and analytics work on different frames at the same time. In a pipelined system, per-frame latency is not the reciprocal of the frame rate.
The MLPerf Inference authors make the same point about accelerators in general. A system can deliver excellent throughput and still perform poorly once a latency constraint applies. In their server scenario, that constraint cost between 3% and 50% of offline throughput, depending on the system. The streaming-perception work by Li, Wang and Ramanan (ECCV 2020) gives the reason latency matters for detection in particular: by the time a frame has been processed, the world has already changed.
What Is the Difference Between Benchmark FPS and Real-Time Performance in a Production Deployment?
Published YOLO detector speeds usually time the model and leave out NMS. The RT-DETR authors note this practice, and it is why they built an end-to-end benchmark. Even that benchmark excludes I/O and memory-copy operations. The YOLOv10 latency benchmark also leaves out I/O overhead. A 2026 benchmark of industrial machine vision runtimes measured network inference only, without pre- or post-processing, and YOLOBench timed the model graph without NMS. These are reasonable choices for comparing models. They do not describe a system. The accuracy side of the same gap, how detection quality shifts between benchmark and site, is covered in benchmark versus production detection.
The R-TOD study shows how far the two can drift apart. On a Jetson AGX Xavier, YOLOv3 had a cycle time of 163 ms, but the measured end-to-end delay was 1070 ms, about six times the cycle time. The authors traced the lag to three causes. First, a queue between camera and detector added delay because the two ran at different frame rates. Second, uneven pipeline stages left the shorter ones idle. Third, CPU threads and GPU kernels competed for shared memory bandwidth on the integrated GPU. Capturing frames on demand instead of through the queue cut average delay from 1070 ms to 383 ms. Adding a zero-slack pipeline on top of on-demand capture brought it to 310 ms. Synchronising CPU and GPU work to avoid contention then reached 261 ms, about a 76% reduction. The 99th-percentile delay fell by 67%, and detection accuracy did not suffer.
None of those fixes changed the network. They changed capture, scheduling and memory contention around it. A detector with a decent frame rate can still deliver its answers far too late, and in R-TOD the delay lay outside the model.
Real-Time Object Detection on GPU vs CPU: What Are the Trade-Offs?
For the CNN detectors tested, TensorRT gave the lowest inference time on NVIDIA GPUs. What decides between GPU and CPU is end-to-end performance at the rate you actually need. An embedded person-detection study notes that GPUs are considerably faster than CPUs at convolution arithmetic because of their bandwidth and parallelism. It also found that the fastest models in CPU mode were the simplest ones, and they paid for that speed in accuracy.
Software plays a vital role in unleashing the hardware’s performance. The 2026 industrial benchmark compared PyTorch, ONNX Runtime, OpenVINO and TensorRT. OpenVINO gave the lowest inference times on Intel CPUs, and ONNX Runtime was best on the Jetson’s ARM CPU. TensorRT was fastest on every NVIDIA GPU tested for the CNN models, cutting YOLOv8 latency by roughly 30 to 56% against the next-best framework. The transformer-based Grounding DINO broke the pattern: on desktop GPUs, plain PyTorch was fastest and TensorRT was about 1.6 to 2.1 times slower. The runtime can even reverse a model ranking. On a Jetson Orin NX, YOLOv8l was faster under PyTorch, while RT-DETR-l pulled ahead under TensorRT.
On a Raspberry Pi 5, large variants under PyTorch or TensorFlow Lite FP32 took several seconds per frame. Even so, none of the large-model configurations reached 25 FPS across the full pipeline.
The GPU’s advantage can also shrink in parts of the pipeline that benchmark inference timings leave out. On discrete-GPU systems, host-to-device and device-to-host copies cross PCIe and can become the bottleneck. Very small networks can become enqueue-bound, because launching each CUDA kernel costs the CPU and driver around 5 to 15 microseconds. On integrated GPUs, the CPU and GPU compete for the same memory bandwidth. Post-processing such as connected-component analysis and bounding-box extraction can stay CPU-bound however fast detection gets.
Then there is the rate you actually need. In a test on a live Frigate stack, one reviewer moved YOLOv9 detection from the CPU to an integrated GPU. Detector latency fell from 30.4 ms to 9.7 ms, and throughput rose from about 33 to 53.5 detector FPS. The four-camera workload needed only about 53 detector FPS. An NPU matched the integrated GPU, drew less power at the wall and left the GPU mostly free for video decoding. That is one machine and one person’s test, not a benchmark. Still, it shows the right question: is the required stream rate met, and with how much headroom? Which device tops a chart matters less.
Choosing a Starting Point by Situation
| Situation | Where to start | What the evidence shows |
|---|---|---|
| CNN detector (YOLO-family, SSD) on an NVIDIA GPU | GPU with TensorRT | TensorRT gave the lowest GPU inference time for the CNN models tested. |
| Detector on an Intel CPU | CPU with OpenVINO | OpenVINO gave the lowest inference times on the Intel desktop CPUs tested. |
| Detector on an ARM CPU such as a Jetson’s | ONNX Runtime first | OpenVINO lost its advantage on the Jetson CPU, and ONNX Runtime was fastest. |
| Transformer-based model on a desktop GPU | Test PyTorch alongside TensorRT | PyTorch was fastest for Grounding DINO on desktop GPUs. |
| Large detector on an edge CPU | Smaller model or an accelerator | Large models under PyTorch or TFLite FP32 took seconds per frame on Raspberry Pi 5. |
| Very small model on a GPU | Batching or CUDA Graphs | Small workloads tend to be enqueue-bound, and CUDA Graphs reduce launch overhead. |
| Integrated GPU (Jetson-class) | Synchronise CPU and GPU work | Contention-free scheduling cut delay further on Jetson AGX Xavier. |
What Does the End-to-End Latency Budget Include Beyond Model Inference?
Model inference is not always the biggest item. The budget covers decoding, any queueing, pre-processing, host-to-device transfer, inference, device-to-host transfer, post-processing, tracking or analytics, and output handling. TensorRT’s own definition of host latency adds the two transfers to GPU compute time.
A case study of a farm video analytics pipeline shows how lopsided the budget can be. The default pipeline cost 55.8 ms per frame: 8.8 ms of pre-processing, 6.9 ms of inference and 40.2 ms of post-processing. Optimisation brought the total down to 26.3 ms, with post-processing at 11.4 ms. On the Jetson Orin Nano Super, TensorRT FP16 inference took 6.16 to 6.18 ms, but the full synchronised prediction call took 13.41 to 14.98 ms. The speedup is smaller at that level because the runtime does not reduce pre- and post-processing costs.
Input resolution acts on pre-processing rather than on the network. With YOLOv11n on a Jetson Orin NX, mean inference latency stayed at about 20.3 to 20.8 ms across resolutions, because the network works on fixed-size internal tensors. Pre-processing latency rose with source resolution. The variance of inference latency still grew with resolution, even though its mean did not. Treating the stages as independent underestimated total-latency variance by 10.2% to 35.2%, which matters when you report tail percentiles.
Decoding belongs in the budget too. In the fruit-detection study, disk-inclusive FP32 latency ranged from 13.1 ms to 25.5 ms across datasets despite similar inference times, driven by loading and decoding higher-resolution source images. In the Belfast pipeline, dropping H.264 from 1080p to 720p more than halved decoding latency and kept accuracy. OpenCV’s grab-then-retrieve interface also avoided decoding frames that were going to be discarded by sampling. The decode-path cost of object detection in video is covered in its own piece.
Post-processing time varies with the input. EfficientNMS kernel time rises as the confidence threshold drops or the IoU threshold rises. Anchor-based YOLO detectors produced about three times more boxes than anchor-free ones and needed more NMS time. NMS-free training cut YOLOv10-S end-to-end latency by 4.63 ms. Tracking adds its own cost. ByteTrack took 14.59 to 19.26 ms per frame, depending on the video sequence.
How Does Deployment Hardware (Edge Device vs GPU Workstation) Change What ‘Real-Time’ Means?
On a GPU workstation, host-device transfers and clock behaviour both move the result. On an edge device, real-time also depends on fitting the pipeline within limits on compute, memory, energy and thermal dissipation.
On discrete-GPU systems, host-to-device input copies go through PCIe buses. TensorRT’s guidance is to overlap those copies with other inferences, using multiple streams, so the GPU never waits. Clock behaviour moves results substantially. Two runs of the same engine on the same GPU can differ by tens of percent if clocks float in one run, or if thermal throttling starts partway through. GPUs with lower power limits, such as the NVIDIA T4, throttle by design when clocks are not locked.
On integrated GPUs, CPU threads and GPU kernels contend for shared memory bandwidth. R-TOD found that this contention increased execution times, especially on an integrated GPU. The same authors warn that their contention fix would bring little benefit on a dedicated GPU with its own memory subsystem. So an optimisation tuned on one class of hardware does not automatically carry over to another.
Model choice does not carry over cleanly either. YOLOBench measured YOLO variants on a Jetson Nano GPU, ARM and x86 CPUs and an NPU, and found that the Pareto-optimal model families differed between devices. Its authors note that latency on a server-grade GPU, or a MAC count, does not directly indicate latency on embedded devices. Models with similar latency on the GPU or ARM CPU could differ by several times on the NPU. Swapping the activation function alone (SiLU for Hardswish) significantly changed TensorFlow Lite CPU latency. Across Raspberry Pi, Coral and Jetson devices, a 2024 evaluation found the Orin Nano gave the best overall balance, while TPU accelerators improved SSD and EfficientDet efficiency but reduced YOLOv8 accuracy. The fruit-detection team built TensorRT engines on the device they evaluated them on, rather than moving engines between machines.
Taken together, a number measured on a workstation says very little about the edge box a line will actually run on.
How Do Latency and Throughput Trade off Against Detection Accuracy on Small or Occluded Objects?
Some levers that buy speed cost accuracy, and the cost shows most in crowded scenes. The MLPerf authors put it plainly: giving up 1% accuracy for 50% lower total cost of ownership is prudent when identifying cat photos and risky when detecting pedestrians.
Reduced precision cost little accuracy in the Jetson study. On the Jetson Orin Nano Super, TensorRT FP16 cut mAP@50:95 by only 0.0020 to 0.0054 compared with PyTorch FP32. INT8 added almost no throughput over FP16 but cut mAP@50:95 by 0.0213 to 0.0393. Mandatory INT8 combined with a cut in input resolution cost far more. On a Raspberry Pi 5, an Edge TPU setup exceeded 1.3 FPS/W but fell to 0.324 mAP50-95, against 0.541 for Hailo-8. The drop came from mandatory INT8 and from cutting the input to 224 × 224 to fit the accelerator’s memory.
Resizing a frame down to a fixed network input leaves fewer pixels on an object that was already small. Detection performance in the fruit studies depended strongly on object scale, density and occlusion. In the 2024 edge evaluation, models scored similarly on simple images, but the accuracy gap widened as the number of objects in the scene grew. Compression choices upstream matter as well: MJPEG’s intra-frame encoding produced artefacts in low-light and occluded regions that slightly weakened detection. An average mAP across a benchmark set therefore understates what a speed-driven downgrade costs on crowded or partly hidden targets. Which compact models hold up best is the subject of lightweight vision models for real-world use.
Faster is not automatically better. Streaming-perception experiments found an optimal point on the latency-accuracy curve that maximises accuracy measured against the live world.
When Does Hitting a Required Frame Rate Force a Model or Resolution Change That Raises Miss Rates?
Smaller detector variants are one route, alongside further hardware-specific optimisation and less pipeline overhead. R-TOD’s 76% delay cut came from capture, scheduling and contention fixes alone, with no loss of accuracy. In the Jetson fruit-detection study, moving from PyTorch FP32 to TensorRT FP16 cost almost no accuracy, and removing NMS takes a stage out of the budget. The 2026 edge benchmark concluded that its large detectors would need further hardware-specific optimisation, less pipeline overhead or smaller variants to reach 25 FPS.
Worked Example: A 25 FPS Budget on a Jetson
The figures below come from different studies and devices. Read this as an illustration of the arithmetic, not a prediction for your system.
- Take the 25 FPS definition, which gives 1000 / 25 = 40 ms per frame.
- Take YOLOv11n inference on a Jetson Orin NX at about 20.3 to 20.8 ms. That leaves roughly 19 to 20 ms for decode, pre-processing, NMS and anything downstream.
- Add tracking: ByteTrack took 14.59 to 19.26 ms per frame on a Jetson Orin Nano Super.
- Pipelining the stages lets throughput hold even when per-frame latency rises above the frame interval.
YOLOBench found that, under the same latency threshold on the same hardware, the best model family and input resolution usually depended on the dataset. We would therefore measure the miss rate a frame-rate target imposes on your own classes. A public leaderboard cannot tell you.
How Should a Real-Time Throughput and Latency Target Be Measured Before a CV System Ships?
Measure on the deployment hardware, over the full pipeline, at the source frame rate. Report percentiles and latency-bounded throughput, measured after warm-up and over a run long enough for power management to settle. We would profile the full pipeline before claiming a real-time target is met, because stage-level timings show which stage is the bottleneck.
TechnoLynx characterises real-time latency and throughput on the deployment hardware. That way a team knows how much accuracy it gives up to hit its frame rate before the system reaches the line, not after. This work is the Production CV Readiness Assessment, part of TechnoLynx’s computer vision R&D practice.
- Write the target as numbers: FPS at a fixed input resolution, a latency percentile, and the accepted miss rate on your own classes.
- Run on the target device, with engines built on that device.
- Time pre-processing, inference and post-processing separately. Ultralytics, for example, reports per-stage times through its
results.speedattribute. Include pre- and post-processing in the system-level figure. - Discard warm-up runs, and synchronise CUDA around each measured operation so asynchronous kernels do not distort wall-clock times. CUDA events can time GPU work without host synchronisation.
- Run for at least a minute. MLPerf requires 60 seconds so that power management and frequency scaling reach equilibrium. Record GPU status at the same time so that odd results can be traced.
- Measure maximum throughput and sustained operation at the source cadence in two separate runs.
- Report tail latency, not just the mean. MLPerf’s single-stream metric is 90th-percentile latency, and its server scenario allows no more than 1% of vision queries to exceed the bound.
- Avoid idle gaps that flatter the result. Synchronising after every inference lets the GPU throttle less, which inflates throughput beyond what a fully loaded system delivers.
- Compare throughput against the reciprocal of GPU compute time. A large shortfall points to host-side overhead or data transfers.
- Re-test accuracy after export rather than assuming the converted engine matches the original checkpoint.
Benchmarking computer vision inference across accelerators and backends is a separate job, and LynxBenchAI does it. The aim here is narrower: a number your own pipeline can be held to.
Who Can Measure Real-Time Detection Latency on Our Own Deployment Hardware?
Whether to bring someone in or build the measurement in-house mostly comes down to two things: does your team already profile each stage on the target device, and does it own the accuracy re-test after export? If you choose a partner for this work, ask to see stage-level timings and tail percentiles taken on the device itself, not model-card FPS.
The assessment does not suit every team. If the deployment hardware has not been chosen yet, LynxBenchAI benchmarks candidate accelerators on throughput, latency and energy. A team with in-house GPU profiling skills can get far with NVIDIA’s own tools: start with trtexec --dumpProfile to find the expensive layers, then move to Nsight Systems to see why they are expensive.