当前位置 : 主页 > 网络编程 > PHP >

tengine+varnish如何优化?

来源:互联网 收集:自由互联 发布时间:2021-07-03
网站带宽为1M apacheab测试结果: ServerSoftware:Tengine ServerHostname:douwole.com ServerPort:80 DocumentPath:/ DocumentLength:19980bytes ConcurrencyLevel:100 Timetakenfortests:77.639seconds Completerequests:500 Failedrequests:0 To
网站带宽为1M
apache ab 测试结果 :
Server Software:        Tengine
Server Hostname:        douwole.com
Server Port:            80

Document Path:          /
Document Length:        19980 bytes

Concurrency Level:      100
Time taken for tests:   77.639 seconds
Complete requests:      500
Failed requests:        0
Total transferred:      10167000 bytes
HTML transferred:       9990000 bytes
Requests per second:    6.44 [#/sec] (mean)
Time per request:       15527.888 [ms] (mean)
Time per request:       155.279 [ms] (mean, across all concurrent requests)
Transfer rate:          127.88 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       42  154  45.7    150     448
Processing:   324 13891 5850.6  14650   31552
Waiting:      149 5906 3893.3   5311   14602
Total:        423 14045 5845.7  14799   31699

Percentage of the requests served within a certain time (ms)
  50%  14799
  66%  14898
  75%  14902
  80%  14951
  90%  16848
  95%  31152
  98%  31351
  99%  31500
 100%  31699 (longest request)

1. [代码][Shell/批处理]代码    

Server Software:        Tengine
Server Hostname:        douwole.com
Server Port:            80

Document Path:          /
Document Length:        19980 bytes

Concurrency Level:      100
Time taken for tests:   77.639 seconds
Complete requests:      500
Failed requests:        0
Total transferred:      10167000 bytes
HTML transferred:       9990000 bytes
Requests per second:    6.44 [#/sec] (mean)
Time per request:       15527.888 [ms] (mean)
Time per request:       155.279 [ms] (mean, across all concurrent requests)
Transfer rate:          127.88 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       42  154  45.7    150     448
Processing:   324 13891 5850.6  14650   31552
Waiting:      149 5906 3893.3   5311   14602
Total:        423 14045 5845.7  14799   31699

Percentage of the requests served within a certain time (ms)
  50%  14799
  66%  14898
  75%  14902
  80%  14951
  90%  16848
  95%  31152
  98%  31351
  99%  31500
 100%  31699 (longest request)
网友评论