Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

修改了WebBench的源码,使其可以支持针对HTTP长连接的测试

License

Notifications You must be signed in to change notification settings

ezhangle/WebBench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

41 Commits

Repository files navigation

WebBench

增加了一个新的选项-k,用来支持对HTTP长连接的测试。用法与原来的没什么区别。 默认不加k为短连接,加k的时候请与-2(http11)配合使用。

使用:

sudo make && sudo make install PREFIX=your_path_to_webbench

命令行选项:

短参 长参数 作用
-f --force 不需要等待服务器响应
-r --reload 发送重新加载请求
-t --time 运行多长时间,单位:秒"
-p --proxy server:port 使用代理服务器来发送请求
-c --clients 创建多少个客户端,默认1个"
-9 --http09 使用 HTTP/0.9
-1 --http10 使用 HTTP/1.0 协议
-2 --http11 使用 HTTP/1.1 协议
-k 使用 Keep-Alive长连接进行测试
--get 使用 GET请求方法
--head 使用 HEAD请求方法
--options 使用 OPTIONS请求方法
--trace 使用 TRACE请求方法
-?/-h --help 打印帮助信息
-V --version 显示版本号

About

修改了WebBench的源码,使其可以支持针对HTTP长连接的测试

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 80.6%
  • Roff 12.3%
  • Makefile 6.6%
  • Shell 0.5%

AltStyle によって変換されたページ (->オリジナル) /