Apache_bench_in_go__hey
使用 hey 代替 ab 对网站应用做性能测试 (服务器配置) https://github.com/rakyll/hey hey is a tiny program that sends some load to a web application. 二八定律: 80% 的请求(访问)集中在 20% 的时间内 假设一个网站每日 pv (page visit) 300w, 也就是 300w*80% <=> 3600*24*20%, 240w pv 在 17280s 内, 240*10000/17280 = 138 QPS (query per second) 如果单台机器支持的 QPS 在 50, 那么需要 3 台这样的机器才能满足需求 ## hey 执行结果示例 $ hey http://localhost:8080/api/tmp Summary: Total: 0.1239 secs Slowest: 0.0961 secs Fastest: 0.0006 secs Average: 0.
Recent Posts
Tags
- apache 4
- axios 1
- benchmark 1
- c 1
- canvas 1
- centos 3
- channel 1
- crontab 1
- css 2
- docker 4
- fail2ban 1
- frp 1
- gin 1
- github 1
- go 26
- goaccess 1
- goroutine 1
- http 1
- https 1
- jetbrains 1
- jquery 1
- js 2
- linux 20
- mermaid 1
- mysql 10
- nginx 3
- node 1
- php 43
- prisma 1
- react 8
- server 1
- ssh 2
- tarojs 1
- tcp/ip 1
- token 1
- ubuntu 1
- ufw 1
- unit-test 1
- vmware 1
- vscode 1
- vue 12
- yum 1
- 域名 3
- 安全 2
- 微信 3
- 算法 3