zoukankan      html  css  js  c++  java
  • Pylot压力测试(linux)

    Pylot需要python2.5以上的版本,打开以后选择对应你的系统的版本,下载好之后双击安装。

    centOS5.5 系统版本python版本是2.4.3,所以要下载个2.5以上的。

    1、下载Python2.5.4:

    wget http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tar.bz2

    2、安装Python:

    tar xvf Python-2.5.4.tar.bz2

    cd Python-2.5.4

    ./configure

    make all

    make install

    make clean

    make distclean

    3.到这里python进去,可以看到版本更新。

    4.下载pylot

    5.解压:

    unzip pylot_1.26.zip  (解压)

    6.cd pylot_1.26

    默认文件:

    7.编辑需要进行压力测试的网站

    vi testcases.xml

    替换url即可。

    保存,退出

    8.进行压力测试

     命令:python run.py -a 10

    10代表进程数

    这个错误是因为没有Matplotlib,自己下载安装即可。连接:
    http://sourceforge.net/projects/matplotlib/

    9.看见done,表示测试结束,可以查看您的测试:结果

    cd /usr/local/src/pylot_1.26

    ll

    cd results

     cd results_2015.03.14_16.27.00

    10.下载这个文件,运行查看结果:

    完毕!

  • 相关阅读:
    函数进阶-生成器
    函数进阶-列表生成式
    闭包
    命名空间
    内置方法
    函数
    squid清除缓存
    subprocess实现管道
    Python统计脚本行数(fileinput)
    fabric note
  • 原文地址:https://www.cnblogs.com/zxm0125/p/4402434.html
Copyright © 2011-2022 走看看