Files
lucisv/docs/perf/take6-20261126/scripts/mcp_summary.py
T
Guoliang ChenandClaude Mythos 5.2 f2d9ff01dc Take 6: OpenTitan performance report, 0.66.2 against Rounds 1-12
Measures 71d13b5 against aa2259b on OpenTitan hw (CLI, LSP, MCP), with
raw logs and drivers under docs/perf/take6-20261126/. Docs only.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
2026-11-26 21:59:18 -08:00

23 lines
1.7 KiB
Python

# Author: Guoliang Chen, a Senior Digital Design Engineer
import json, statistics as st, sys
rows=[json.loads(l) for l in open(sys.argv[1])]
def s(v): return "%.1f / %.1f / %.1f" % (min(v), st.median(v), max(v)) if v else "-"
print("| scenario | label | cold N | cold ms min/med/max | warm N | warm ms min/med/max | bytes | lines | isError | distinct answers |")
for sc in ["hierarchy","find-single","find-qualified","find-multi","check-full","check-dir","check-glob"]:
for lab in ["0.66.2","HEAD"]:
r=[x for x in rows if x["what"]==sc and x["label"]==lab]
c=[x["ms"] for x in r if x["state"]=="cold"]; w=[x["ms"] for x in r if x["state"]=="warm"]
print("|",sc,"|",lab,"|",len(c),"|",s(c),"|",len(w),"|",s(w),"|",sorted({x["bytes"] for x in r}),"|",sorted({x["lines"] for x in r}),"|",sorted({x["is_error"] for x in r}),"|",sorted({x["sha256"][:12] for x in r}),"|")
for what in ["initialize","tools/list"]:
for lab in ["0.66.2","HEAD"]:
r=[x for x in rows if x["what"]==what and x["label"]==lab]
extra = s([x["from_spawn_ms"] for x in r]) if what=="initialize" else ""
print(what,lab,len(r),"ms",s([x["ms"] for x in r]),"from_spawn",extra,"bytes",sorted({x["bytes"] for x in r}), sorted({x.get("instructions_bytes") for x in r}), len(r[0].get("tools") or []) if what=="tools/list" else "")
for sc in ["check-dir","check-glob","find-qualified","find-single","check-full"]:
for lab in ["0.66.2","HEAD"]:
x=[x for x in rows if x["what"]==sc and x["label"]==lab][0]; print(sc,lab,x["first_line"][:150])
print("load1 range", min(x["load1"] for x in rows), max(x["load1"] for x in rows))
# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com