Tag

Vegeta

0 views collected around this technical thread.

360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 26, 2019 · Backend Development

Cutting Go Memory Allocations by 100×: Profiling, Tracing, and Fixing Middleware

This article walks through generating load with Vegeta, using pprof and Go trace to pinpoint massive heap allocations caused by the chi compression middleware, and shows how upgrading the library and disabling the middleware reduced allocations by nearly a hundred‑fold while improving GC performance.

Compression MiddlewareGoMemory Profiling
0 likes · 8 min read
Cutting Go Memory Allocations by 100×: Profiling, Tracing, and Fixing Middleware