Analyze and visualize the size of compiled Go binaries
open sourceAGPL-3.0-onlyself-hostablefree
go-size-analyzer (gsa) breaks down what makes a compiled Go binary large, by package, dependency and section, for ELF, Mach-O and PE binaries and, experimentally, WebAssembly. It prints a table or JSON, renders HTML or SVG treemaps, serves an interactive web report, has a terminal UI, and compares two builds in a diff mode. A WebAssembly version runs the analysis in the browser at gsa.zxilly.dev without uploading the binary, slower and best for binaries under 30 MB.
Problems it solves
- my Go binary is huge and I want to know which dependencies make it so big
- see how much each package contributes to a compiled Go executable
- compare two builds of my Go program to find what made it grow
- an interactive treemap of a Go binary's size I can click through
- check a Go binary's size breakdown in CI and output it as JSON
- analyse a Go binary's size in the browser without uploading it anywhere
Features
- analyzes ELF, Mach-O, PE and (experimental) WebAssembly binaries
- size breakdown by packages and sections
- text, JSON, HTML and SVG output
- interactive web report and terminal UI
- diff mode to compare two binaries
- in-browser WebAssembly version that doesn't upload the binary
Capabilities
| Has a command line tool | plan not known |
|---|
