This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

🔨 Add more results to timings analysis

+12 -4
+12 -4
script/debug-performance.py
··· 1 - from subprocess import run 1 + import os 2 2 from pathlib import Path 3 - from rich.table import Table 3 + from subprocess import run 4 + from time import time_ns 5 + 4 6 from rich.console import Console 5 - import os 7 + from rich.table import Table 6 8 7 - ignored_tasks = ["render_frames", "render", "sync_audio_with", "run", "canvas_from_cli"] 9 + ignored_tasks = [] 8 10 9 11 10 12 def avg(numbers: list[float]): ··· 12 14 13 15 14 16 if not Path("timings.log").exists(): 17 + start = time_ns() 15 18 result = run( 16 19 ["just", "example-video", "out.mp4", "--duration 5"], 17 20 capture_output=True, 18 21 env=os.environ | {"RUST_LOG": "debug"}, 19 22 ) 23 + end = time_ns() 20 24 21 25 Path("timings.log").write_bytes(result.stdout + result.stderr) 22 26 ··· 66 70 67 71 formatted_results = [ 68 72 [function, f"{timing:.3f}", f"{count}"] for function, timing, count in averages 73 + ] 74 + 75 + formatted_results += [ 76 + ["_Total_", f"{(end - start) / 1e6:.3f}", "1"], 69 77 ] 70 78 71 79