Updated link test

This commit is contained in:
Mark Qvist 2022-06-09 17:07:44 +02:00
parent be6910e4e0
commit a4b80e7ddb

View File

@ -229,6 +229,7 @@ def resource_profiling():
t = time.time() - start t = time.time() - start
print("Resource completed at "+size_str(resource_size/t, "b")+"ps") print("Resource completed at "+size_str(resource_size/t, "b")+"ps")
if hasattr(resource.link.attached_interface, "rxptime"):
rx_pr = (resource.link.attached_interface.rxb*8)/resource.link.attached_interface.rxptime rx_pr = (resource.link.attached_interface.rxb*8)/resource.link.attached_interface.rxptime
print("Average RX proccessing rate: "+size_str(rx_pr, "b")+"ps") print("Average RX proccessing rate: "+size_str(rx_pr, "b")+"ps")