Add quarkus-vs-spring-ai module: the same support assistant (system prompt, tool, RAG) built with Quarkus LangChain4j and Spring AI against a stub OpenAI-compatible server, with wire-format capture, startup/memory benchmarks and a Quarkus native image
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
f4f90b3b30
commit
5e5326c810
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user