bench-resources

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

bench-resources measures binary size, peak RAM during `go build`, and runtime RAM (idle + under load) for the bench apps under benchmarks/apps/ plus cmd/gofastr and cmd/kiln.

Output is a Markdown table to stdout (also captured by `make bench-resources`). Use it to see how each feature surface contributes to deployable cost.

Usage:

go run ./cmd/bench-resources                # everything, default settings
go run ./cmd/bench-resources -load=200      # 200 warmup requests per app
go run ./cmd/bench-resources -apps=minimal,crud   # subset

RAM-during-build is measured via the build subprocess's syscall.Rusage.Maxrss; bytes on Darwin, kilobytes on Linux — both normalised to bytes here. Idle and loaded RAM come from `ps -o rss=` against the running PID (kB on both Mac and Linux).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL