A tool for analyzing the size of compiled Go binaries with detailed breakdowns, cross-platform support, and multiple output formats.
go-size-analyzer is a tool for analyzing the size of compiled Go binaries. It breaks down binary size by packages, sections, and dependencies to help developers identify bloat and optimize their applications. The tool supports multiple output formats including interactive web and terminal interfaces for detailed exploration.
Go developers and teams who need to optimize binary size for production deployments, especially those working on resource-constrained environments or distributing Go applications.
Developers choose go-size-analyzer for its detailed, visual breakdowns of binary composition, cross-platform support, and interactive exploration features that go beyond basic size reporting available in standard Go tooling.
A tool for analyzing the size of compiled Go binaries, offering cross-platform support, detailed breakdowns, and multiple output formats.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports ELF, Mach-O, PE, and experimental WebAssembly binary formats, enabling analysis across major operating systems and browsers.
Outputs results as text, JSON, HTML, or SVG treemaps, providing flexibility for reports, integration, and visual documentation.
Offers a web interface and terminal UI for navigating size breakdowns interactively, making it easy to drill down into specific packages and sections.
Diff mode compares two binaries to highlight size changes, useful for tracking bloat across Go version updates or build configurations.
The WebAssembly version is significantly slower (10x time) and only recommended for small binaries under 30 MB, hindering browser-based analysis for larger applications.
The README cautions that analyzing stripped binaries may lead to inaccurate results, reducing reliability for optimized production builds where stripping is common.
The TODO list notes missing charts like flame graphs and pie charts, indicating current visualizations are not as comprehensive as some users might expect.