Skip to content

Optional tools

prof tools works on data under bench/. Same flows from prof uiTools.

prof tools benchstat

benchstat across two tags.

prof tools benchstat --base baseline --current optimized --bench-name BenchmarkGenPool

Install: go install golang.org/x/perf/cmd/benchstat@latest

Output: bench/tools/benchstat/<BenchmarkName>_results.txt

prof tools qcachegrind

Callgrind + QCacheGrind.

prof tools qcachegrind --tag optimized --profiles cpu --bench-name BenchmarkGenPool

Needs QCacheGrind installed. Output: bench/tools/qcachegrind/<BenchmarkName>_<profile>.callgrind

See also

Compare runs · Collect profiling data