Performance evolution of route lookup on Linux
Vincent Bernat benchmarks IPv4 and IPv6 route lookups across Linux versions through 7.3, identifying a substantial cost from AMD’s SRSO mitigation on his Zen 4c test machine.
He measures roughly 200 ns of added IPv6 lookup latency versus 30 ns for IPv4, which traverses fewer functions. Results depend on the CPU and mitigation configuration; the test machine’s firmware configuration did not enable automatic IBRS. He also traces an IPv4 regression to a link-state check and measures a small improvement from reordering the conditions.