눈바래다

apache stress testing ab 이용하여 -g test.dat 파일의 내용을 가지고 그래프 출력하기

[root@linuxtest ~]# ab -n 100 -c 10 -g test.dat http://localhost/index.html

 

test.dat 파일을 window PC 가져온다

 

http://sourceforge.net/projects/gnuplot/files/

에서

Looking for the latest version? Download gp463-win32-setup.exe (10.5 MB)

다운받는다

gnuplot 실행후

 

gnuplot> plot "d:\asdf.dat" using 10 smooth sbezier with lines title "test :"           

gnuplot> set title "Web Server Testusing Apache Bench"

gnuplot> set size 1,1

gnuplot> grid y

gnuplot> set xlabel "Request"

gnuplot> set ylabel "ResponseTime"

gnuplot> plot "d:\ginx.dat"using 10 smooth sbezier with lines title "nginx-1.4.1:","d:\apache.dat" using 10 smooth sbezier with lines title"apache-2.4.4:"