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).
Click to show internal directories.
Click to hide internal directories.