#!/usr/bin/env bash set -euo pipefail # Build and run Tiny-Hot triad with bench-only SLL-only + warmup + PGO. # Usage: scripts/run_tiny_sllonly_triad.sh [cycles] ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd) cd "$ROOT_DIR" cycles=${1:-60000} echo "[build] system/mimalloc (fast + mi)" make -s bench_fast bench_tiny_hot_mi >/dev/null echo "[build] HAKMEM bench_sll_only (PGO)" make -s pgo-benchsll-profile >/dev/null make -s pgo-benchsll-build >/dev/null export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}" echo "[run] triad (bench_sll_only HAKMEM vs System vs mimalloc)" SKIP_BUILD=1 bash scripts/run_tiny_hot_triad.sh "$cycles" echo "[note] Latest CSV printed by triad runner."