清风听雨 发表于 2018-12-12 09:30:55

PHP服务缓存优化

# ab -n 3000 -c 100 http://10.0.0.111/test_info.php  
# 3000次会话请求、100并发数Server Software:      nginx/1.6.3
  
Server Hostname:      10.0.0.111Server Port:            80Document Path:          /test_info.php #测试页面Document Length:      83921 bytes #页面大小Concurrency Level:      100 #100并发数Time taken for tests:   7.973 seconds #整个测试持续时间Complete requests:      3000 #完成的请求总数Failed requests:      302 #失败的请求次数
  
   (Connect: 0, Receive: 0, Length: 302, Exceptions: 0)Write errors:         0Total transferred:      252203675 bytes #整个过程的网络传输量HTML transferred:       251762675 bytes #HTML内容传输量Requests per second:    376.25 [#/sec] (mean) #吞吐量,每秒能够处理的并发数Time per request:       265.779 (mean) #平均事务响应时间Time per request:       2.658 (mean, across all concurrent requests)
  
#每个连接请求实际运行时间Transfer rate:          30889.42 received
  
#平均每秒网络上的流量,可以帮助排除是否存在网络流量大导致响应时间延长的问题Connection Times (ms)            minmean[+/-sd] median   maxConnect:      0    1   3.2      0      21Processing:    1426132.2    261   331Waiting:      226032.4    260   331Total:         2926129.9    261   331Percentage of the requests served within a certain time (ms)50%    26166%    26875%    27380%    27690%    287 #90%的请求任务在287ms内完成95%    30398%    31599%    322 100%    331 (longest request)


页: [1]
查看完整版本: PHP服务缓存优化