Commit 172d81c5 authored by captainwong's avatar captainwong

bps

parent 67e697d6
......@@ -67,6 +67,8 @@ void ademcoPacketBench()
printf("\ndone\nduration=%lldms\navg parse time=%.2lfus\n", ms, avg);
double avgpps = 1000.0 * TIMES / ms;
printf("average packets per second=%.2lf\n", avgpps);
double avgbps = total_len * 1000.0 / ms;
printf("average bytes per second=%.2lfB/s, %.2lfKB/s\n", avgbps, avgbps / 1024.0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment