$ show andrewrk/poop
This is a Linux-only CLI benchmarking tool written in Zig that uses the `perf_event_open` syscall to measure hardware performance counters (CPU cycles, instructions, cache references/misses, branch misses) alongside wall time and peak RSS. It repeatedly executes user-specified commands, collects samples, and computes statistical summaries (mean, standard deviation, quartiles, outlier counts) with a colorful terminal UI. The tool compares multiple commands, treating the first as a reference, and displays deltas with statistical significance testing using Student's t-distribution. The codebase is small but well-crafted, demonstrating advanced use of Linux perf events, statistical analysis, and terminal rendering. It is actively maintained by Andrew Kelley (author of Zig) and serves as a practical alternative to Hyperfine for hardware-aware benchmarking.
The LLM identified 1 files worth highlighting for reuse:
A self-contained progress bar module that renders a spinner and a proportional bar with percentage and run count. It handles terminal width detection via ioctl, uses ANSI escape codes for color, and throttles rendering to 50ms intervals. It is cleanly separated from the benchmarking logic and could be extracted for use in any Zig CLI tool requiring a progress indicator.