Plot ab results with gnuplot
Save to echo-gnu-plot.sh
CODE:
-
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
CODE:
-
gnuplot
then paste from clip board
see the image my-page.png
ab gnuplot
ab and gnuplot
Categories: Fax, Malo mešano