Measuring performance
Measure latency and throughput for DeGirum models, capture per-stage timings, and apply repeatable test loops backed by consistent validation.
Baseline checklist
1
2
3
4
5
Inspect per-frame timing
Example
from degirum_tools import ModelSpec, remote_assets
model_spec = ModelSpec(
model_name="yolov8n_coco--640x640_quant_hailort_multidevice_1",
zoo_url="degirum/hailo",
inference_host_address="@local",
model_properties={"device_type": ["HAILORT/HAILO8L", "HAILORT/HAILO8"]},
)
model = model_spec.load_model()
model.measure_time = True
# Optional warm-up inference
_ = model(remote_assets.three_persons)
result = model(remote_assets.three_persons)
for stage, value in result.timing.items():
print(f"{stage}: {value:.2f} ms")Aggregate with time stats
Example
Compute throughput
Example
Track regressions over time
Last updated
Was this helpful?

