大家可以体验一下 OSChina 在 Cherokee 运行的情况

红薯 发布于 2010/05/12 15:12
阅读 2K+
收藏 3

今天 Cherokee 1.0 正式版终于发布了,我第一时间在 OSChina 的服务器上装了一套,跑在 81 端口上

大家可以通过下面的地址来测试

http://www.oschina.net:81/   (已关闭)

看看 Cherokee 输出的信息如下:

C:\Users\Administrator>curl -I http://www.oschina.net:81/
HTTP/1.1 200 OK
Connection: Keep-Alive
Keep-Alive: timeout=15
Server: Cherokee/1.0.0 (UNIX)
Content-Type: text/html;charset=UTF-8
Content-Length: 59988
Date: Wed, 12 May 2010 07:09:21 GMT

而 80 端口跑的还是 Nginx,可以比较下看哪个速度更快一些。

我测试的结果还是 Nginx 更好一些。

想体验的话动作要快,过两天我就会把 Cherokee 停掉。

加载中
0
范堡
范堡

头位!!!!!!

这东西好不容易出正式版.

0
Appcrashes
Appcrashes

我电脑太快了,感觉不出来哪个快

0
欧德高
欧德高

多次测试下来显示Cherokee快些,但是nginx是生产环境,Cherokee是零时测试的

 

[root@ms13 ~]# /usr/local/apache/bin/ab -c 200 -n 10000 http://www.oschina.net:81/img/logo.gif

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.oschina.net (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:        Cherokee/1.0.0

Server Hostname:        www.oschina.net

Server Port:            81

Document Path:          /img/logo.gif

Document Length:        2952 bytes

Concurrency Level:      200

Time taken for tests:   4.971 seconds

Complete requests:      10000

Failed requests:        0

Write errors:           0

Total transferred:      32210000 bytes

HTML transferred:       29520000 bytes

Requests per second:    2011.55 [#/sec] (mean)

Time per request:       99.426 [ms] (mean)

Time per request:       0.497 [ms] (mean, across all concurrent requests)

Transfer rate:          6327.33 [Kbytes/sec] received

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:       27   51 215.7     36    3043

Processing:    27   43 107.5     36    3083

Waiting:       27   41 104.1     36    3042

Total:         54   94 240.7     73    3128

Percentage of the requests served within a certain time (ms)

  50%     73

  66%     77

  75%     80

  80%     81

  90%     88

  95%    101

  98%    122

  99%    373

 100%   3128 (longest request)

 

 

[root@ms13 ~]# /usr/local/apache/bin/ab -c 200 -n 10000 http://www.oschina.net/img/logo.gif

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.oschina.net (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

Server Hostname:        www.oschina.net

Server Port:            80

 

Document Path:          /img/logo.gif

Document Length:        2952 bytes

 

Concurrency Level:      200

Time taken for tests:   5.158 seconds

Complete requests:      10000

Failed requests:        0

Write errors:           0

Total transferred:      32270000 bytes

HTML transferred:       29520000 bytes

Requests per second:    1938.81 [#/sec] (mean)

Time per request:       103.156 [ms] (mean)

Time per request:       0.516 [ms] (mean, across all concurrent requests)

Transfer rate:          6109.91 [Kbytes/sec] received

 

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:       27   55 250.1     35    3039

Processing:    27   38 100.1     36    3076

Waiting:       27   38  99.8     35    3045

Total:         54   93 269.5     71    3110

 

Percentage of the requests served within a certain time (ms)

  50%     71

  66%     74

  75%     76

  80%     77

  90%     80

  95%     83

  98%     91

  99%    124

 100%   3110 (longest request)

 

0
glb
glb

感觉上Cherokee快些!准备自己安装测试一下!!

0
glb
glb

关注这个很长时间了!终于出了 1.0正式版!

0
JavaGG
JavaGG

差不了多少吧

0
范堡
范堡

经内网服务器又压了一遍。也是用 ab

发现并发处理性能最优在 100 ~ 200 并发之间,最大能每秒处理 15000 多个请求。

并发数 300 的时候每秒请求数稍微降低至 14000 左右

并发数越高,每秒处理的请求数就越低。

在并发 1000 的时候只有 12000 左右

并发数 2000 的时候跌破 1W 只有 8000 多。

0
答复哈
答复哈

感觉上.Nginx更快一些~

0
红薯
红薯

引用来自#9楼“答复哈”的帖子

感觉上.Nginx更快一些~

快不快不是凭感觉的,要用事实说话。

0
答复哈
答复哈

引用来自#10楼“红薯”的帖子

引用来自#9楼“答复哈”的帖子

感觉上.Nginx更快一些~

快不快不是凭感觉的,要用事实说话。

 嘿嘿...

返回顶部
顶部