feat: add frequency information to benchmark report (#60)

Include frequency details in the benchmark report when using fixed frequency mode to enhance clarity and analysis of performance metrics.
This commit is contained in:
zhangyi1357 2024-10-29 14:29:51 +08:00 committed by GitHub
parent 5051051b00
commit 69b83817cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,6 +179,8 @@ class BenchmarkRpcClientModule(aimrt_py.ModuleBase):
p999_latency = self.perf_data[int(correct_count * 0.999)]
result_str = f"Benchmark plan {plan_id} completed, report:"
if plan['perf_mode'] == 'fixed-freq':
result_str += f"\nfreq: {plan['freq']}"
result_str += f"\nmode: {plan['perf_mode']}"
result_str += f"\nmsg size: {plan['msg_size']}"
result_str += f"\nparallel: {plan['parallel']}"