Dynamic Batching for AI Inference Serving (2D)
Interactive 2D simulator of dynamic request batching on an inference server: watch requests queue, form batches, and hit a GPU compute core, and see the live latency-vs-throughput trade-off as you tune arrival rate, batch size, and timeout. Drag to pan, scroll to zoom.
Every production ML model serves requests one at a time in theory, but real inference servers group concurrent requests into batches before running them through the GPU, because the fixed cost of a kernel launch and memory transfer is mostly independent of how many examples ride along with it. This top-down simulator models that scheduler directly: requests arrive at a random rate and queue up as small squares in a lane; once the queue hits the batch-size cap or the oldest request has waited too long, the scheduler flushes a batch into the glowing compute core, which lights up while it processes and then releases the finished requests as sparks. Live readouts track queue depth, GPU utilization, average end-to-end latency, and throughput, so you can feel directly how a larger batch cap or longer timeout trades latency for throughput — and where that trade stops paying off. Drag anywhere on the canvas to pan the view and scroll to zoom in or out.
Interactive 2D simulator of dynamic request batching on an inference server: watch requests queue in a lane, form batches, and hit a glowing GPU compute core, and see the live latency-vs-throughput trade-off as you tune arrival rate, batch size, and timeout. Drag to pan, scroll to zoom.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install