A tool for analyzing the size of compiled Go binaries, offering cross-platform support (ELF, Mach-O, PE, WASM), detailed breakdowns by packages and sections, and multiple output formats.
- v1.14.1
- Published at
- 22d ago
- 2,183
- Stars
- 14,044
- Download
- Synced at
- 15d ago
Latest release
v1.14.1Sep 27, 2026, 12:11 PMDownloads slow? Switch the source anytime above
README
Project Overview
go-size-analyzer is a simple tool to analyze the size of a Go compiled binary.
Key Features
- Cross-platform support for analyzing
ELF,Mach-O,PE, andWebAssembly(experimental) binary formats - Detailed size breakdown by packages and sections
- Multiple output formats:
text,json,html,svg - Interactive exploration via web interface and terminal UI
- Binary comparison with diff mode (supports
jsonandtextoutput)
Target Audience
- Go developers
- Engineers who need to optimize binary size
- Researchers interested in Go binary composition
Quick Start
- Download the latest binary from Releases
- macOS/Linux via Homebrew:
brew install go-size-analyzer - Windows via Scoop:
scoop install go-size-analyzer - Web mode:
gsa --web <binary> - Terminal UI mode:
gsa --tui <binary>
Core Advantages
- Cross-platform support for multiple binary formats
- Rich output formats and visualization options
- Binary comparison support
- Open-source and free
System Requirements
- OS: Cross-platform (Linux, macOS, Windows)
- Architectures: x86_64, arm64
- Additional Dependencies: Go 1.25+ for building from source
Release history
Sort