import sys, time, json from pathlib import Path import huc6280 REFERENCE = Path(huc6280.__file__).resolve().parents[2] sys.path.insert(0, str(REFERENCE / "tests")) import dormann out = Path(sys.argv[1]) image = (out / "test.bin").read_bytes() labels = json.loads((out / "labels.json").read_text()) for _ in range(3): t = time.monotonic(); r = dormann.run(image, labels); dt = time.monotonic() - t print(r.reason, r.instructions, f"{dt:.3f} s", f"{r.instructions/dt/1e6:.2f} M instr/s")