快捷搜索:  

IIS6.0环境用FastCGI模式加载php的性能测试(2)



下面进行最简单的压力测试:

我用apache里面内置的ab.exe进行最简单的压力测试:

ab -n 1000 -c 20 http://192.168.0.6/abu.php

这句话的意思是模拟出总共1000个网站请求,并发20个请求,访问服务器http://192.168.0.6/abu.php 页面

如下图:

 


点击可以看到大图

这是我在服务器上的截图,注意,我们可以发现,服务器的CPU已经窜至80%左右。

我本机完整的记录见下面:

C:\>ab -n 1000 -c 20 http://192.168.0.6/abu.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.0.6 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests


Server Software:        Microsoft-IIS/6.0
Server Hostname:        192.168.0.6
Server Port:            80

Document Path:          /abu.php
Document Length:        46499 bytes

Concurrency Level:      20
Time taken for tests:   52.46875 seconds
Complete requests:      1000
Failed requests:        10
   (Connect: 0, Length: 10, Exceptions: 0)
Write errors:           0
Total transferred:      46673950 bytes
HTML transferred:       46498950 bytes
Requests per second:    19.21 [#/sec] (mean)
Time per request:       1040.938 [ms] (mean)
Time per request:       52.047 [ms] (mean, across all concurrent requests)
Transfer rate:          875.75 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:          94.7        2984
Processing:   531 1020 528.3    813    3953
Waiting:       15  346 281.6    312    3656
Total:        531 1028 536.5    828    3968

Percentage of the requests served within a certain time (ms)
  50%    828
  66%    859
  75%    921
  80%   1031
  90%   1812
  95%   1890
  98%   3812
  99%   3937
 100%   3968 (longest request)



好的,下面开始第二个阶段,换FastCGI

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论