欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

tengine+varnish如何优化?

程序员文章站 2022-05-10 18:17:14
...

网站带宽为1M apacheab测试结果: ServerSoftware:Tengine ServerHostname:douwole.com ServerPort:80 DocumentPath:/ DocumentLength:19980bytes ConcurrencyLevel:100 Timetakenfortests:77.639seconds Completerequests:500 Failedrequests:0 Totaltransfe

网站带宽为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) Tengine Varnish
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)