Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

简单qps测试;没有啥亮点? #3

Closed
yuelao025 opened this issue Jun 29, 2017 · 1 comment
Closed

简单qps测试;没有啥亮点? #3

yuelao025 opened this issue Jun 29, 2017 · 1 comment

Comments

@yuelao025
Copy link

➜  swoole curl http://127.0.0.1:9501/test
this is index test%                                                                                                       ➜  swoole
➜  swoole wrk -t 2 -c 1000 -d 10 http://127.0.0.1:9501/test
Running 10s test @ http://127.0.0.1:9501/test
  2 threads and 1000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.16s   430.52ms   1.69s    54.32%
    Req/Sec   224.37     46.09   370.00     75.38%
  4466 requests in 10.04s, 828.65KB read
  Socket errors: connect 0, read 992, write 3, timeout 0
Requests/sec:    444.83
Transfer/sec:     82.54KB
➜  swoole
➜  swoole wrk -t 2 -c 1000 -d 10 http://127.0.0.1:9501/test
Running 10s test @ http://127.0.0.1:9501/test
  2 threads and 1000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.18s   444.71ms   1.75s    57.03%
    Req/Sec   222.19     53.77   390.00     75.88%
  4429 requests in 10.07s, 821.79KB read
  Socket errors: connect 0, read 967, write 2, timeout 0
Requests/sec:    439.89
Transfer/sec:     81.62KB
➜  swoole

为何测试qps 这么低了;默认启动方式; 4 worker形式;
环境
mac osx 4 GB 1600 MHz DDR3 i5 双核;
以上是纯粹echo xxxxx;
php-fpm 同样逻辑echo xxx qps 900;;和你之前的贴出的数据相比差异蛮大的;
你能否针对你的机器 弄个php-fpm /swoole 弄个同样逻辑的数字对比了?

@kiss291323003
Copy link
Contributor

请自行认真测试

kiss291323003 pushed a commit that referenced this issue Mar 22, 2018
@0xRelter 0xRelter mentioned this issue Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants