FP16 vs FP32 matmul on RTX 4060: 3.5x speedup at large sizes, slower at 128x128

cneuralnetwork · x · 2026-10-23

A PyTorch benchmark on an RTX 4060 laptop GPU (TF32 disabled, CUDA event timings) shows FP16 matmul is slightly slower than FP32 at 128x128 (0.93x), but speedup climbs with size — 2.21x at N=512, 3.47x at N=1536 — then plateaus around 3.3-3.5x up to 16384x16384. Takeaway: half precision doesn't automatically mean 2x faster; kernel selection, hardware utilization, and whether the workload is large enough to hit specialized compute units dominate. The full curve includes latency plots for both precisions.

Original post →

More from Infra

Infra channel →