来晒一晒大家的 ab 测试结果吧。。。

HHVM + Postgresql, 双核 2G内存

对服务器地址进行了星号处理。。

[root@laravel~]# ab -n 3000 -c 200 http://*.*.*.*/
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking *.*.*.* (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Completed 3000 requests
Finished 3000 requests

Server Software:        nginx/1.4.6
Server Hostname:        *.*.*.* 
Server Port:            80

Document Path:          /
Document Length:        8666 bytes

Concurrency Level:      200
Time taken for tests:   83.394 seconds
Complete requests:      3000
Failed requests:        0
Write errors:           0
Total transferred:      27867346 bytes
HTML transferred:       25998000 bytes
Requests per second:    35.97 [#/sec] (mean)
Time per request:       5559.609 [ms] (mean)
Time per request:       27.798 [ms] (mean, across all concurrent requests)
Transfer rate:          326.33 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.9      0       8
Processing:    87 5398 1003.2   5391    9202
Waiting:       87 5397 1003.2   5391    9202
Total:         91 5398 1002.8   5392    9202
WARNING: The median and mean for the initial connection time are not within a normal deviation
        These results are probably not that reliable.

Percentage of the requests served within a certain time (ms)
  50%   5392
  66%   5651
  75%   5852
  80%   5976
  90%   6536
  95%   6954
  98%   7446
  99%   7669
 100%   9202 (longest request)
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
讨论数量: 2

3000,5000次太少了,建议不用-n,用 -t 至少300秒,结果可能会相差很大

7年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!