更新时间:2022-10-05 18:56:48
tar zxvf gnuplot-4.6.4.tar.gz
cd gnuplot-4.6.4
./configure
sudo make && sudo make install
|
ab -n 500 -c 100 -g ./ab_500_100.dat http://localhost/index.php
ab -n 500 -c 200 -g ./ab_500_200.dat http://localhost/index.php
ab -n 500 -c 300 -g ./ab_500_300.dat http://localhost/index.php
|
starttime seconds ctime dtime ttime wait
Mon Jan 27 21:03:02 2014 1390827782 89 503 592 28
Mon Jan 27 21:03:02 2014 1390827782 84 591 676 24
Mon Jan 27 21:03:02 2014 1390827782 93 616 710 24
Mon Jan 27 21:03:02 2014 1390827782 94 628 722 28
Mon Jan 27 21:03:02 2014 1390827782 84 741 824 26
Mon Jan 27 21:03:02 2014 1390827782 84 741 825 26
Mon Jan 27 21:03:02 2014 1390827782 101 725 826 23
Mon Jan 27 21:03:02 2014 1390827782 124 707 831 80
Mon Jan 27 21:03:02 2014 1390827782 204 629 833 28
Mon Jan 27 21:03:02 2014 1390827782 95 741 836 26
Mon Jan 27 21:03:02 2014 1390827782 96 743 838 50
Mon Jan 27 21:03:02 2014 1390827782 96 744 840 40
Mon Jan 27 21:03:02 2014 1390827782 109 773 883 36
Mon Jan 27 21:03:02 2014 1390827782 109 774 883 37
Mon Jan 27 21:03:02 2014 1390827782 153 765 918 51
Mon Jan 27 21:03:02 2014 1390827782 141 778 919 76
Mon Jan 27 21:03:02 2014 1390827782 115 814 929 28
Mon Jan 27 21:03:02 2014 1390827782 103 831 934 23
Mon Jan 27 21:03:02 2014 1390827782 103 831 934 23
Mon Jan 27 21:03:02 2014 1390827782 108 831 939 36
Mon Jan 27 21:03:02 2014 1390827782 115 825 940 64
Mon Jan 27 21:03:02 2014 1390827782 162 783 945 87
Mon Jan 27 21:03:02 2014 1390827782 119 831 950 32
Mon Jan 27 21:03:02 2014 1390827782 108 844 952 15
Mon Jan 27 21:03:02 2014 1390827782 128 830 958 32
Mon Jan 27 21:03:02 2014 1390827782 128 831 958 35
Mon Jan 27 21:03:02 2014 1390827782 108 856 964 87
Mon Jan 27 21:03:02 2014 1390827782 123 843 967 15
|
# 设定输出图片的格式
set terminal png
# 设定输出的图片文件名
set output "ab_500.png"
# 图表的标题
set title "ab_500 ab -n 500 -c 100,200,300"
# 设定图表的X轴和Y轴缩放比例(相当于调整图片的纵横比例,方形的不好看啊)
set size 1,0.7
# 设定以Y轴数据为基准绘制栅格(就是示例图表中的横向虚线)
set grid y
# X轴标题
set xlabel "request"
# Y轴标题
set ylabel "response time (ms)"
# 设定plot的数据文件,曲线风格和图例名称,以第九列数据ttime为基准数据绘图
plot "ab_500_100.dat" using 9 smooth sbezier with lines title "conc per 100","ab_500_200.dat" using 9 smooth sbezier with lines title "conc per 200","ab_500_300.dat" using 9 smooth sbezier with lines title "conc per 300"
|