Plot ab results with gnuplot
Save to echo-gnu-plot.sh
echo "set terminal png" echo "set output \"$1.png\"" echo "set xlabel \"Request\"" echo "set ylabel \"ms\"" echo "plot \"$1.txt\" using 10 with lines title \"Response time\""
Run ab
ab -g my-page.txt -n 1000 -c 100 http://mypage.net/
Run
sh echo-gnu-plot.sh my-page
Copy the output
Run
gnuplot
then paste from clip board
see the image my-page.png
ab gnuplot
ab and gnuplot
Categories: Fax, Malo mešano
It's easier to just save a file with the config you want(for example the output of sh echo-gnu-plot.sh my-page) like plot.p and then run gnuplot plot.p