research: measure track2 A/A noise with unchanged application
This commit is contained in:
@@ -89,6 +89,11 @@ def restore(label: str) -> dict:
|
||||
or not all(row["ok"] for row in data["checks"])
|
||||
):
|
||||
raise SystemExit(f"analyze: restore {label} did not pass all checks")
|
||||
if (
|
||||
data["profile"]["name"] != "skew"
|
||||
or data["before"]["counts"]["messages"] < 100_000
|
||||
):
|
||||
raise SystemExit(f"analyze: restore {label} does not cover the full track")
|
||||
return {
|
||||
"label": label,
|
||||
"counts": data["before"]["counts"],
|
||||
@@ -154,6 +159,8 @@ def main() -> None:
|
||||
}
|
||||
for data in runs:
|
||||
memory = next(iter(data["memory"].values()))
|
||||
with (ROOT / "evidence" / "bench" / data["label"] / "fill.csv").open() as file:
|
||||
fill = list(csv.DictReader(file))
|
||||
result["variants"][data["label"]] = {
|
||||
"duration_s": data["meta"]["duration_s"],
|
||||
"cells": [
|
||||
@@ -162,11 +169,7 @@ def main() -> None:
|
||||
],
|
||||
"plans": data["meta"]["plans"],
|
||||
"memory": memory,
|
||||
"fill": list(
|
||||
csv.DictReader(
|
||||
(ROOT / "evidence" / "bench" / data["label"] / "fill.csv").open()
|
||||
)
|
||||
),
|
||||
"fill": fill,
|
||||
}
|
||||
for before, after in ((base, chat_only), (chat_only, no_index), (base, no_index)):
|
||||
for key in sorted(base["stats"]):
|
||||
|
||||
Reference in New Issue
Block a user