A 404 from net/http costs 62 allocations
A static route through net/http's mux costs 85.6 ns and nothing on the heap. A path that matches no pattern costs 2125.5 ns and 62 allocations.
Frameworks, libraries, the standard library's edges and the toolchain, judged against the same evidence standard as everything else.
A static route through net/http's mux costs 85.6 ns and nothing on the heap. A path that matches no pattern costs 2125.5 ns and 62 allocations.