#!/usr/bin/env python3 """rank: the hottest Relax functions ranked by samples x (Relax instructions / rustc instructions), the work list for asm comparison (asmdiff.py). Profiles come from Relax's own sampler (MAKEPAD_RUN_PROFILE, steady state), so this works on macOS too; rustc sizes from the symbols of a native release build. rank.py --out DIR bench [--makepad R] [--native BIN] [--warm MS] [kernel ...] run bench_rt kernels under Relax at steady state, one profile per kernel (DIR/bench-.tsv) rank.py --out DIR add