Web Server程序编写学习笔记(五)性能测试
来源:互联网 发布:java qq主界面 编辑:程序博客网 时间:2024/05/22 17:24
使用apache自带的HTTP服务器性能测试工具ab对上述程序在FreeBSD和windows(Cygwin)下的运行情况进行测试。
网路条件:局域网,192.168.1.7分别在FreeBSD和windows(Cygwin)下运行服务器程序,192.168.1.27运行ab测试程序对服务器程序进行测试;
机器硬件条件:Intel (R) Celeron CPU 2.40GHz;256DDR,Maxtor 80G。
1. FreeBSD 4.7环境:
/*****************************************************/
C:/>ab -n 1000 -c 50 192.168.1.7/124
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.1.7 (be patient)
Server Software: mypngserver
Server Hostname: 192.168.1.7
Server Port: 80
Document Path: /124
Document Length: 188 bytes
Concurrency Level: 50
Time taken for tests: 77.831917 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 346000 bytes
HTML transferred: 188000 bytes
Requests per second: 12.85 [#/sec] (mean)
Time per request: 3891.596 [ms] (mean)
Time per request: 77.832 [ms] (mean, across all concurrent requests)
Transfer rate: 4.33 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 77 41.7 100 100
Processing: 10 3718 481.4 3805 3905
Waiting: 0 1997 1104.4 2002 3905
Total: 110 3796 481.8 3905 3905
Percentage of the requests served within a certain time (ms)
50% 3905
66% 3905
75% 3905
80% 3905
90% 3905
95% 3905
98% 3905
99% 3905
100% 3905 (longest request)
/*************************************************************/
2. Windows XP (Cygwin)环境:
/*****************************************************/
C:/>ab -n 1000 -c 50 192.168.1.7/qwe
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.1.7 (be patient)
Server Software: mypngserver
Server Hostname: 192.168.1.7
Server Port: 80
Document Path: /qwe
Document Length: 193 bytes
Concurrency Level: 50
Time taken for tests: 719.454525 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 351000 bytes
HTML transferred: 193000 bytes
Requests per second: 1.39 [#/sec] (mean)
Time per request: 35972.726 [ms] (mean)
Time per request: 719.455 [ms] (mean, across all concurrent requests)
Transfer rate: 0.48 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 712 311.2 520 1191
Processing: 4326 34387 4359.4 35221 36192
Waiting: 3815 20803 9140.2 20769 36111
Total: 5127 35099 4359.4 36111 36933
Percentage of the requests served within a certain time (ms)
50% 36111
66% 36212
75% 36312
80% 36392
90% 36612
95% 36712
98% 36812
99% 36822
100% 36933 (longest request)
/****************************************************/
- Web Server程序编写学习笔记(五)性能测试
- Web Server程序编写学习笔记(一)
- Web Server程序编写学习笔记(二)
- Web Server程序编写学习笔记(三)getpng.c
- Web Server程序编写学习笔记(四)源代码
- WEB 性能测试-介绍 学习笔记
- 并发性能测试程序编写
- 学习性能测试笔记
- C#代码性能测试程序编写要点
- C# 性能测试程序及编写要点
- Rstudio-server编写python程序测试
- Web Server性能测试工具介绍
- 构建高性能的web站点学习笔记五------Web服务器缓存
- 构建高性能的web站点学习笔记五------Web服务器缓存
- Sql SERVER 学习笔记五
- 构建高性能Web站点(笔记五)
- Maven学习笔记五:Maven使用入门(编写测试代码)
- Java Web学习笔记(五)
- 解析微软.Net框架下的XML编程技术
- 一段读取文件时显示进度条的代码(CSDN上收录)
- 软件工程的认识
- 软件开发的过程中关键路径问题
- 盘点2004
- Web Server程序编写学习笔记(五)性能测试
- 小小的笑话,看出人生哲理
- 人成长中必须知道的20个故事
- 伊万,关于XP和RUP的论述
- 伊万的复用之见解
- 待从头收拾旧山河
- 烦恼不是在于我们想要什么
- c#打印条形码
- XMLHTTP和DOMDocument在WEB应用上的使用问题