8、HTTPD服务--ab压力测试

一、ab压力测试

复制代码
# ab ‐c 100 ‐n 1000 http://vedio.linux.com/index.html
2 This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
4 Licensed to The Apache Software Foundation, http://www.apache.org/
5
6 Benchmarking vedio.linux.com (be patient)
7 Completed 100 requests
8 Completed 200 requests
9 Completed 300 requests
10 Completed 400 requests
11 Completed 500 requests
12 Completed 600 requests
13 Completed 700 requests
14 Completed 800 requests
15 Completed 900 requests
16 Completed 1000 requests
17 Finished 1000 requests
18
19
20 Server Software: Apache
21 Server Hostname: vedio.linux.com
22 Server Port: 80
23
24 Document Path: /index.html
25 Document Length: 17 bytes
26
27 Concurrency Level: 100 //并发连接数
28 Time taken for tests: 1.252 seconds //服务器完成所有请求的花费的时间 【重要指标】
29 Complete requests: 1000
30 Failed requests: 0
31 Write errors: 0
32 Total transferred: 268000 bytes //传输了多少字节的数据; 真实数据+http首部
33 HTML transferred: 17000 bytes //传输了多少字节的数据; 真实数据
34 Requests per second: 798.78 [#/sec] (mean) //每秒处理的请求数, 吞吐率;【重要指标】
35 Time per request: 125.190 [ms] (mean) //用户平均请求等待时间,单位ms 【重要指标】
36 Time per request: 1.252 [ms] (mean, across all concurrent requests) //用户请求的处理时间 【重要指标】
37 Transfer rate: 209.06 [Kbytes/sec] received //衡量带宽 【重要指标】
38
39 Connection Times (ms)
40 min mean[+/‐sd] median max
41 Connect: 0 7 11.9 2 56
42 Processing: 4 114 66.7 108 1071
43 Waiting: 2 96 46.0 93 1071
44 Total: 6 121 68.3 111 1104
45
46 Percentage of the requests served within a certain time (ms)
47 50% 111
48 66% 124
49 75% 140
50 80% 151
51 90% 174
52 95% 194
53 98% 267
54 99% 301
55 100% 1104 (longest request)
相关推荐
喵了meme36 分钟前
Linux学习日记24:Linux网络编程基础
linux·网络·学习
whlqjn_12111 小时前
linux下使用SHC对Shell脚本进行封装和源码隐藏
linux·centos
weixin_462446231 小时前
K8s 集群部署基础:Linux 三节点 SSH 互信(免密登录)配置指南
linux·kubernetes·ssh
Hard but lovely2 小时前
Linux: 线程同步-- 基于条件变量 &&生产消费模型
linux·开发语言·c++
m0_738120722 小时前
应急响应——知攻善防靶场Linux-1详细应急过程
linux·运维·服务器·网络·web安全·ssh
Guistar~~2 小时前
【Linux驱动开发IMX6ULL】WS73 驱动移植的详细教程基于USB协议--WIFi网卡、蓝牙BLE、星闪SLE
linux·驱动开发
汽车仪器仪表相关领域2 小时前
工况模拟精准检测,合规减排赋能行业 ——NHASM-1 型稳态工况法汽车排气检测系统项目实战经验分享
数据库·算法·单元测试·汽车·压力测试·可用性测试
GHL2842710902 小时前
无法连接服务端socket
linux·服务器·网络
汽车仪器仪表相关领域3 小时前
光轴精准测量,安全照明保障——NHD-8101/8000型远近光检测仪项目实战分享
数据库·人工智能·安全·压力测试·可用性测试
阿华hhh3 小时前
项目(购物商城)
linux·服务器·c语言·c++