#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd)

run_one() {
  local key=$1
  bash "${ROOT_DIR}/perf/bench_compare_c_vs_hako.sh" "$key" 2 7 || true
}

echo "[phase-21.5] Comparing C vs Hakorune VM (median of 3, warmup 2)"
run_one box_create_destroy_small 2 3
run_one method_call_only_small 2 3
