Boom — Go语言实现的性能测试工具

lovegolang · · 7865 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
Boom — Go语言实现的性能测试工具 HTTP(S) load generator, ApacheBench (ab) replacement, written in Go Boom is a tiny program that sends some load to a web application. It's similar to Apache Bench (ab), but with better availability across different platforms and a less troubling installation experience. 项目地址:[https://github.com/rakyll/boom](https://github.com/rakyll/boom) 安装:go get github.com/rakyll/boom **Usage** Usage: boom [options...] <url> Options: -n Number of requests to run. -c Number of requests to run concurrently. Total number of requests cannot be smaller than the concurency level. -q Rate limit, in seconds (QPS). -o Output type. If none provided, a summary is printed. "csv" is the only supported alternative. Dumps the response metrics in comma-seperated values format. -m HTTP method, one of GET, POST, PUT, DELETE, HEAD, OPTIONS. -h Custom HTTP headers, name1:value1;name2:value2. -d HTTP request body. -T Content-type, defaults to "text/html". -a Basic authentication, username:password. -allow-insecure Allow bad/expired TLS/SSL certificates. **输出示例:** % boom -n 1000 -c 100 https://google.com 1000 / 1000 ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎ 100.00 % Summary: Total: 21.1307 secs. Slowest: 2.9959 secs. Fastest: 0.9868 secs. Average: 2.0827 secs. Requests/sec: 47.3246 Speed index: Hahahaha Response time histogram: 0.987 [1] | 1.188 [2] | 1.389 [3] | 1.590 [18] |∎∎ 1.790 [85] |∎∎∎∎∎∎∎∎∎∎∎ 1.991 [244] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎ 2.192 [284] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎ 2.393 [304] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎ 2.594 [50] |∎∎∎∎∎∎ 2.795 [5] | 2.996 [4] | Latency distribution: 10% in 1.7607 secs. 25% in 1.9770 secs. 50% in 2.0961 secs. 75% in 2.2385 secs. 90% in 2.3681 secs. 95% in 2.4451 secs. 99% in 2.5393 secs. Status code distribution: [200] 1000 responses

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:812540095

7865 次点击  
加入收藏 微博
7 回复  |  直到
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传