#!/usr/bin/env bash # Captures the HTTP requests each framework sends to the "LLM" for the same two questions. set -u source "$(dirname "$0")/lib.sh" OUT="$ROOT/output/wire"; mkdir -p "$OUT/quarkus" "$OUT/spring" for side in quarkus spring; do rm -f "$OUT/$side"/*.json start_stub "$OUT/$side" || { echo "stub failed"; exit 1; } if [ $side = quarkus ]; then start_quarkus; else start_spring; fi rm -f "$OUT/$side"/*.json && curl -s localhost:18089/stats >/dev/null # drop the readiness probe ask "Where is my order 1001?" > /dev/null ask "How many days do I have to return an item?" > /dev/null [ $side = quarkus ] && kill_jar "$Q_JAR" || kill_jar "$S_JAR" kill_jar "$STUB_JAR"; sleep 1 done python3 "$ROOT/scripts/wire_summary.py" "$OUT" > "$ROOT/output/30-wire-summary.txt" cat "$ROOT/output/30-wire-summary.txt"