77import argparse
88import importlib .resources
99import os
10+ import platform
1011import typing
1112from dataclasses import dataclass , field
1213from pathlib import Path
1314
15+ import torch
16+
1417from benchmark_decoders_library import (
1518 AbstractDecoder ,
1619 BatchParameters ,
@@ -167,7 +170,7 @@ def main() -> None:
167170 if entry .is_file () and entry .name .endswith (".mp4" ):
168171 video_paths .append (entry .path )
169172
170- df_data = run_benchmarks (
173+ results = run_benchmarks (
171174 decoders_to_run ,
172175 video_paths ,
173176 num_uniform_samples ,
@@ -176,7 +179,21 @@ def main() -> None:
176179 benchmark_video_creation = args .bm_video_creation ,
177180 batch_parameters = BatchParameters (num_threads = 8 , batch_size = 40 ),
178181 )
179- plot_data (df_data , args .plot_path )
182+ data = {
183+ "experiments" : results ,
184+ "system_metadata" : {
185+ "cpu_count" : os .cpu_count (),
186+ "system" : platform .system (),
187+ "machine" : platform .machine (),
188+ "python_version" : str (platform .python_version ()),
189+ "cuda" : (
190+ torch .cuda .get_device_properties (0 ).name
191+ if torch .cuda .is_available ()
192+ else "not available"
193+ ),
194+ },
195+ }
196+ plot_data (data , args .plot_path )
180197
181198
182199if __name__ == "__main__" :
0 commit comments