Latest / Developer tools

go-size-analyzer

github.com · Open source · Active

Breaks down Go binary size by package with interactive treemaps

Visit github.com ↗Share

Stars
2.2k
Forks
45
Open issues
4
Last commit
Releases
91
Found
2 years ago

GitHub figures as of . They are context, not a ranking.

Go Size Analyzer shows which dependencies and standard library packages make up a compiled Go binary. It offers interactive treemaps, a terminal interface and a visual diff between binary versions, which suits developers trying to shrink Docker images or edge-device binaries.

Repository description on GitHub: “A tool for analyzing the size of compiled Go binaries, offering cross-platform support, detailed breakdowns, and multiple output formats.”

What it does

  • Breaks binary size down by package and section
  • Supports ELF, Mach-O and PE binaries
  • Interactive treemap in the web view and a terminal UI
  • Visual diff between two binary versions

Good for

  • Find which dependencies bloat a Go binary
  • Compare binary size between two builds

Suits: Go developers trying to shrink Docker images or edge binaries.

Worth knowing: WebAssembly binary support is marked experimental

What you can try

Read the README on GitHub and install from source.

Install

brew install go-size-analyzer
go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw go-size-analyzer on , when zxilly posted it to Show HN. The oldest published release on GitHub is 0.1.0, dated . go-size-analyzer had been shipping tagged releases for 533 days before it was found. 91 releases have been published in total; the latest is v1.14.1 ().

Day-7 and day-30 updates

Day 7 2 releases shipped

  • 2 releases in the first 7 days: v1.7.1 (29 Aug 2024), v1.7.2 (1 Sep 2024)
  • Show HN discussion at check time: 87 points, 13 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 3 releases shipped

  • 3 releases in the first 30 days: v1.7.1 (29 Aug 2024), v1.7.2 (1 Sep 2024), v1.7.3 (15 Sep 2024)
  • Show HN discussion at check time: 87 points, 13 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (24 in total, busiest month 6). Based on the most recent releases on record.
  1. Repository created on GitHub: Zxilly/go-size-analyzer
  2. Release 0.1.0
  3. Found: zxilly posted it to Show HN. Show HN
  4. Release v1.12.5
  5. Release v1.12.6
  6. Release v1.13.0
  7. Release v1.13.1
  8. Release v1.14.0
  9. Release v1.14.1
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 91 releases. All releases on GitHub

Quick answers

When was go-size-analyzer released?
Its first tagged release on GitHub is dated 14 Mar 2023. Kip found it on Show HN on 28 Aug 2024.
Is go-size-analyzer open source?
Its source is public on GitHub at Zxilly/go-size-analyzer under the AGPL-3.0 licence.
What does go-size-analyzer run on?
Command line, Web.
Is go-size-analyzer free?
It is open source, so the code is free to read and run; check the licence for terms.
Is go-size-analyzer still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryZxilly/go-size-analyzer
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-41380460. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.