Home > Fax, Malo mešano > Plot ab results with gnuplot

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 Tags:
  1. March 16th, 2012 at 06:19 | #1

    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

  1. October 17th, 2008 at 09:49 | #1

17043 pages viewed, 1 today
11075 visits, 1 today
FireStats icon Powered by FireStats