Zxilly

go-size-analyzer

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 PM
Downloads 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, and WebAssembly (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 json and text output)

Target Audience

  • Go developers
  • Engineers who need to optimize binary size
  • Researchers interested in Go binary composition

Quick Start

  1. Download the latest binary from Releases
  2. macOS/Linux via Homebrew: brew install go-size-analyzer
  3. Windows via Scoop: scoop install go-size-analyzer
  4. Web mode: gsa --web <binary>
  5. 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