Initial commit
This commit is contained in:
20
bin/benchmark
Executable file
20
bin/benchmark
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# Benchmark dispatcher
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
case "${1:-help}" in
|
||||
setup) exec bash "$SCRIPT_DIR/scripts/benchmark/setup.sh" ;;
|
||||
baseline) exec bash "$SCRIPT_DIR/scripts/benchmark/run-baseline.sh" "${@:2}" ;;
|
||||
run) exec bash "$SCRIPT_DIR/scripts/benchmark/run-suite.sh" "${@:2}" ;;
|
||||
compare) exec bash "$SCRIPT_DIR/scripts/benchmark/compare.sh" "${@:2}" ;;
|
||||
*)
|
||||
echo "Usage: benchmark <command> [options]"
|
||||
echo " setup Ensure toolboxes and test models are ready"
|
||||
echo " baseline Capture pre-optimization baseline"
|
||||
echo " run Run full benchmark suite (--tag NAME, --backends LIST)"
|
||||
echo " compare Compare two runs (DIR1 DIR2)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user