Spaces:
Paused
Paused
Add deterministic regression benchmark and update validation docs
Browse files
tests/test_benchmark_pipeline.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from benchmark_pipeline import run_benchmark
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def test_deterministic_benchmark_is_repeatable(tmp_path):
|
| 5 |
+
report = run_benchmark(tmp_path, sizes=(16, 24), repeats=2)
|
| 6 |
+
assert report["all_deterministic"] is True
|
| 7 |
+
assert len(report["rows"]) == 2
|
| 8 |
+
assert all(row["metrics"]["point_count"] > 0 for row in report["rows"])
|
| 9 |
+
assert (tmp_path / "simam3d_deterministic_benchmark.json").exists()
|