inspect-limits

command
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command inspect-limits reports whether a running container actually received the resource ceiling the benchmark intended (issue #141 §7 requires the suite to "detect and report that fact rather than silently pretending limits were applied"). It reads the limits Docker recorded for the container from `docker inspect` and classifies them against the intended budget via benchmarks/internal/reslimits, printing the honest verdict.

# after `docker compose ... up -d gin-gorm`:
go run ./benchmarks/scripts/inspect-limits \
  -container benchmarks-gin-gorm-1 -cpus 2 -memory 1g

This command prints the verdict; `make benchmark-crud-all` consumes it, passing the string to `run-crud -resource-limits` so a run records the applied limit (standalone, you can do the same by hand via `run-crud -resource-limits "$(inspect-limits …)"`). With -strict it exits non-zero unless the budget was fully enforced, so a caller that wants to refuse rather than record can fail closed.

Jump to

Keyboard shortcuts

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