cyclonedds/performance/throughput-test-plot
Erik Boasson 97990237bc add scripts for running a throughput test between two machines
Signed-off-by: Erik Boasson <eb@ilities.com>
2019-01-17 19:49:55 +01:00

14 lines
444 B
Bash
Executable file

#!/bin/bash
`dirname $0`/throughput-test-extract > data.txt
gnuplot <<\EOF
set term png size 1024,768
set output "throughput-polling.png"
set st d l
set title "Throughput (polling with 1ms sleeps)"
set ylabel "M sample/s"
set y2label "Mbps"
set y2tics
set xlabel "payload size [bytes]"
p "data.txt" i 5 u 1:($2/1e6) ti "rate [M sample/s]", "" i 5 u 1:3 axes x1y2 ti "app bandwidth [Mbps]", "" i 5 u 1:4 axes x1y2 ti "GbE bandwidth [Mbps]"
EOF