Batching benchmark: 50x throughput for ~24% latency cost on PyTorch

cneuralnetwork · x · 2026-10-23

Benchmarking a small neural net on PyTorch 2.8.0 (MPS), batch size 1→32 kept latency flat at 0.076ms while throughput scaled linearly from 13,178 to 419,863 req/s; at batch 64 latency rose just 24% to 0.094ms for 680,811 req/s. GPUs are built for parallelism: small batches leave compute idle, larger batches buy throughput, not per-request latency.

Related event: PyTorch Benchmarks Show Batching Boosts Throughput at Low Latency Cost(2 posts)→

Original post →

More from Research

Research channel →