test_check_ok_perf.py
python
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
13 hours ago
| 1 | """Performance — scaffold completes within a local budget.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | import time |
| 6 | from datetime import date |
| 7 | from pathlib import Path |
| 8 | |
| 9 | from tools.check_ok.scaffold import scaffold_side_check |
| 10 | |
| 11 | |
| 12 | def test_scaffold_under_budget(tmp_path: Path) -> None: |
| 13 | start = time.perf_counter() |
| 14 | for i in range(20): |
| 15 | scaffold_side_check(tmp_path, topic=f"perf-{i}", today=date(2026, 7, 17)) |
| 16 | elapsed = time.perf_counter() - start |
| 17 | assert elapsed < 2.0 |
File History
1 commit
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
13 hours ago