Skip to content

Commit

Permalink
Added an overall score. (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Oct 2, 2024
1 parent 5594aaf commit c6a4f74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions leads_vec/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ def main() -> int:
L.info("Video test complete")
for k, v in report.items():
L.info(f"{k}: {v:.3f}")
baseline = {"frame rate": 30, "net delay": 1.062, "video capture": 17.898, "video capture and encoding": 16.657,
"video capture and Base64 encoding": 16.658, "video capture and PIL": 16.668}
score = 0
for k, v in report.items():
score += v / baseline[k]
L.info("Score:", str(score / len(report)))
return 0


Expand Down

0 comments on commit c6a4f74

Please sign in to comment.