Skip to content

Quickstart

Assume the module root as cwd and benchmarks in *_test.go. Terms: index.

Use menus (default)

prof ui

Collect with one tag, change code, run again with another tag, then Compare two tagged runs. Narrower flows: Interactive UI and TUI (prof tui, prof tui track).

Use flags (CI or scripts)

  1. Baseline:
prof auto --benchmarks "BenchmarkExample" --profiles "cpu,memory,mutex,block" --count 10 --tag "baseline"
  1. After changes:
prof auto --benchmarks "BenchmarkExample" --profiles "cpu,memory,mutex,block" --count 10 --tag "candidate"
  1. Compare:
prof track auto --base "baseline" --current "candidate" --profile-type "cpu" --bench-name "BenchmarkExample" --output-format "summary"

Output

Next steps