现在好多类似的产品,都写着高性能,如何能有实际测试数据就好了。
By
zqjilove
at 2015-07-06 • 0人收藏 • 1042人看过
另外,高性能这个问题,都是老站长关注的,一般都是discuz用户,或者phpwind用户、能提供转化工具就更牛逼了。
3 个回复 | 最后更新于 2015-07-07
[root@vps bin]# ab -n10000 -c100 http://www.94cb.com/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking www.94cb.com (be patient) Completed 1000 requests Completed 2000 requests Completed 3000 requests Completed 4000 requests Completed 5000 requests Completed 6000 requests Completed 7000 requests Completed 8000 requests Completed 9000 requests Completed 10000 requests Finished 10000 requests Server Software: nginx/1.7.9 Server Hostname: www.94cb.com Server Port: 80 Document Path: / Document Length: 24935 bytes Concurrency Level: 100 Time taken for tests: 22.583 seconds Complete requests: 10000 Failed requests: 1626 (Connect: 0, Receive: 0, Length: 1626, Exceptions: 0) Write errors: 0 Total transferred: 251729776 bytes HTML transferred: 249349776 bytes Requests per second: 442.80 [#/sec] (mean) Time per request: 225.834 [ms] (mean) Time per request: 2.258 [ms] (mean, across all concurrent requests) Transfer rate: 10885.44 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 23 27.3 14 148 Processing: 3 202 76.8 198 666 Waiting: 0 167 80.2 168 541 Total: 7 224 71.7 217 666 Percentage of the requests served within a certain time (ms) 50% 217 66% 246 75% 266 80% 281 90% 322 95% 357 98% 388 99% 424 100% 666 (longest request)
$5/Month的VPS里100并发下的首页ab测试结果:
Requests per second: 442.80 [#/sec] (mean)
由于是本机ab本机,所以测试值表现会差于实际表现。
登录后方可回帖
最下方的就是执行时间,目前使用的服务器是一个月$5的VPS,有一定参考价值。
目前这个数据量下,这个VPS上使用Apache ab测试,可以承受一天近千万的PV,如果使用独立服务器,负载应该还能再翻几倍。
大部分网站在达到这个级别的PV前就会先完蛋。