程序是一门艺术

程序架构与公共代码--本博客文章均系原创

Asp.net + Access 压力测试

今天来个了压力测试,环境如下:

语言:       asp.net C#
Dll大小:    52kb + 260kb + 112kb + 20kb + 48kb=492kb
数据库:   :Access 8MB左右 单连接访问数据库4-5次
IIS:            IIS6.0 端口:80 限制:25%的Cpu利用率
应用程序池:独立
CPU:         CM520 1.6Ghz x 1
内存:        2GB
实际占用: 28MB
并发 数:   30 持续60秒
网络:        本地网络

测试结果如下:
Average Click Time 219 ms, 1,536 Clicks, 0 Errors
Total Number of Clicks: 1,536 (0 Errors)
Average Click Time of all URLs: 219 ms

平均速度:219   在开始的10秒里,平均速度800ms,而后逐渐降低变为58ms
也就是程序是从800ms 逐渐提高到58ms....最后稳定在58ms左右。

//文字版的摘要结果如下:

Results of period #1 (from 4 sec to 15 sec ):
****************************************************************
Completed Clicks: 305 with 0 Errors (=0.00%)
Average Click Time for 1,800 Users: 863 ms
Successful clicks per Second: 29.61 (equals 106,584.86 Clicks per Hour)

Results of period #2 (from 15 sec to 25 sec ):
****************************************************************
Completed Clicks: 307 with 0 Errors (=0.00%)
Average Click Time for 1,800 Users: 61 ms
Successful clicks per Second: 30.14 (equals 108,495.23 Clicks per Hour)

Results of period #3 (from 25 sec to 35 sec ):
****************************************************************
Completed Clicks: 307 with 0 Errors (=0.00%)
Average Click Time for 1,800 Users: 60 ms
Successful clicks per Second: 29.89 (equals 107,607.40 Clicks per Hour)

Results of period #4 (from 35 sec to 46 sec ):
****************************************************************
Completed Clicks: 310 with 0 Errors (=0.00%)
Average Click Time for 1,800 Users: 58 ms
Successful clicks per Second: 30.09 (equals 108,325.99 Clicks per Hour)

Results of period #5 (from 46 sec to 56 sec ):
****************************************************************
Completed Clicks: 307 with 0 Errors (=0.00%)
Average Click Time for 1,800 Users: 58 ms
Successful clicks per Second: 29.76 (equals 107,136.94 Clicks per Hour)

 

 

图片其实挺清晰的,放大看还行。

对于这个曲线,我很郁闷,在10秒种的时候为什么会出现一个瓶紧,而且尝试过,最多50个并发连接,50个连接以后的,速度就要超过1秒了。

测试2,连接Access,不关闭Connection,等待连接池满。

结果Access只能并发50个左右的并发连接,超过50连接会出现连接失败的情况。

posted on 2009-01-18 17:45  甘蔗皮  阅读(3067)  评论(18编辑  收藏  举报

导航