Fix SSR Benchmark, 2nd attempt (#2806)

* Fix benchmark, 2nd attempt.

* Read items, not attributes.
This commit is contained in:
Kaede Hoshikawa 2022-08-03 22:08:23 +09:00 committed by GitHub
parent e026b4f54e
commit 108a5e80ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,12 @@ def write_benchmark(lines: List[str], content: List[Dict[str, str]]) -> None:
for i in content:
lines.append(
"| {i.name} | {i.round} | {i.min} | {i.max} | {i.mean} | {i.std_dev} |"
f"| {i['name']} | {i['round']} | {i['min']} | {i['max']} | {i['mean']} | {i['std_dev']} |"
)
lines.append("")
lines.append("</details>")
lines.append("")
def main() -> None: