ftp 服务器的基准测试
项目描述
什么是ftpbenchmark?
它是负载测试 FTP 服务器的基准。
特征
登录基准
上传基准(STOR 命令)
下载基准(RETR 命令)
为多台服务器运行测试
自动检测 dns 循环记录
将结果保存到 cvs 文件
需要
gevent ( http://www.gevent.org/ )
dnspython ( http://www.dnspython.org/ )
安装
简单的pypi:
$ pip install ftpbenchmark
从来源:
$ git clone https://github.com/imjoseangel/ftpbenchmark $ cd ftpbenchmark/ $ python setup.py install # auto install all requires
独立的 debian:
$ apt-get install python-gevent python-dnspython $ git clone https://github.com/imjoseangel/ftpbenchmark $ cd ftpbenchmark/ftpbenchmark/ $ wget https://raw.githubusercontent.com/selectel/timecard/master/timecard/timecard.py $ python ftpbenchmark.py --help
用法
跑:
$ ftpbenchmark --help FTP benchmark. Usage: ftpbenchmark --help ftpbenchmark -n <host> -u <user> -p <password> [options] --login ftpbenchmark -n <host> -u <user> -p <password> [options] --upload -w <workdir> [-s <size>] ftpbenchmark -n <host> -u <user> -p <password> [options] --download -w <workdir> [-s <size>] [--files <count>] Connection options: -n <host>, --host=<host> FTP host [default: 127.0.0.1:21] You can list multiple servers, separated by commas, e.g.: -h 10.0.0.1,10.0.0.2,10.0.0.3. Auto-detection of dns round-robin records is supported. -u <user>, --user <user> FTP user -p <password>, --password <password> FTP password Timing options: -t <sec>, --timeout <sec> Timeout for operation [default: 10] -m <minutes>, --maxrun <minutes> Duration of benchmarking in minutes [default: 5] -x <sec>, --fixevery <sec> Recording period for stat values [default: 5] Benchmark options: -c <count>, --concurrent <count> Concurrent operations [default: 10] -v <file>, --csv <file> Save result to csv file -w <workdir>, --workdir <workdir> Base ftp dir to store test files -s <size>, --size <size> Size of test files in MB [default: 10] -f <count>, --files <count> Number of files generated for download test [default: 10]
项目详情
关
ftpbenchmark -1.1.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 8af3523bfd5cdb569e621033f70f6abe31ee0558d34d05eec12ac832c844febc |
|
MD5 | 42d04bc825c1e0e746fcee4f7d793512 |
|
布莱克2-256 | 0912bf5a91ae5ff28b32695d6cf952adcaa4a406eb11d834fcf746cf02839922 |