./ab -c 1000 -n 1000 http://127.0.0.1/index.php
这个表示同时处理1000个请求并运行1000次index.php文件.
#/usr/local/xiaobai/apache2054/bin/ab -c 1000 -n 1000 http://127.0.0.1/index.html.zh-cn.gb2312
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 127.0.0.1 (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: Apache/2.0.54
//平台apache 版本2.0.54
Server Hostname: 127.0.0.1
//服务器主机名
Server Port: 80
//服务器端口
Document Path: /index.html.zh-cn.gb2312
//测试的页面文档
Document Length: 1018 bytes
//文档大小
Concurrency Level: 1000
//并发数
Time taken for tests: 8.188731 seconds
//整个测试持续的时间
Complete requests: 1000
//完成的请求数量
Failed requests: 0
//失败的请求数量
Write errors: 0
Total transferred: 1361581 bytes
//整个场景中的网络传输量
HTML transferred: 1055666 bytes
//整个场景中的HTML内容传输量
Requests per second: 122.12 [#/sec] (mean)
//大家最关心的指标之一,相当于
LR
中的
每秒事务数
,后面括号中的
mean
表示这是一个平均值
Time per request: 8188.731 [ms] (mean)
//大家最关心的指标之二,相当于
LR
中的
平均事务响应时间
,后面括号中的
mean
表示这是一个平均值
Time per request: 8.189 [ms] (mean, across all concurrent requests)
//每个请求实际运行时间的平均值
Transfer rate: 162.30 [Kbytes/sec] received
//平均每秒网络上的流量,可以帮助排除是否存在网络流量过大导致响应时间延长的问题
Connection Times (ms)
min mean[+/-sd] median max
Connect: 4 646 1078.7 89 3291
Processing: 165 992 493.1 938 4712
Waiting: 118 934 480.6 882 4554
Total: 813 1638 1338.9 1093 7785
//网络上消耗的时间的分解,各项数据的具体算法还不是很清楚
Percentage of the requests served within a certain time (ms)
50% 1093
66% 1247
75% 1373
80% 1493
90% 4061
95% 4398
98% 5608
99% 7368
100% 7785 (longest request)
//整个场景中所有请求的响应情况。在场景中每个请求都有一个响应时间,其中50%的用户响应时间小于1093 毫秒,60% 的用户响应时间小于1247 毫秒,最大的响应时间小于7785 毫秒
由于对于并发请求,cpu实际上并不是同时处理的,而是按照每个请求获得的时间片逐个轮转处理的,所以基本上第一个Time per request时间约等于第二个Time per request时间乘以并发请求数
CMD命令收集
分享到:
相关推荐
apache benchmark 独立文件 ab.exe 可以直接使用 Version 2.3。一般用户压力测试用。参数如下 .\ab.exe --help Options are: -n requests Number of requests to perform -c concurrency Number of multiple ...
ab是apache自带的压力测试工具。ab非常实用,它不仅可以对apache服务器进行网站访问压力测试,也可以对或其它类型的服务器进行压力测试。比如nginx、tomcat、IIS等
shit + 右键, 打开命令行 命令:ab -n1000 -c100 http://localhost:12001/
参数说明: 此外,我们再根据上面的用法介绍界面来详细了解每个参数选项的作用。 -n 即requests,用于指定压力测试总共的执行次数。 -c 即concurrency,用于指定的并发数。 ...-t 即timelimit,等待响应的最大时间...
Mac安装Apache Benchmark() 1.下载依赖 wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz wget ...
受Apache Benchmark的启发,它打算成为steriods上的Apache Benchmark(ab.exe)。 它会在测试结束时在终端窗口中显示最终结果,但也会在Web界面中不断报告。开始上手你需要什么Superbenchmarker(sb或sbcore)可在...
Apache Benchmark解析器该实用程序将Apache Benchmark报告中的值解析为CSV文件。下载在下载jar。用法使用以下格式运行它: java -jar ab-parser.jar [source] [target csv]源可以是包含Apache Benchmark报告文件的...
ApacheBench测试,ab.exe纯文件,省去配置apache麻烦。
apache carbondata performance benchmark,大数据数据结构与算法,数据压缩格式,性能分析报告与报表,最新大数据压缩格式carbondata
Apache 2.4 安全加固。 Table of Contents Overview .........................................................................................................................................................
Apache CarbonData Performance Benchmark Report(0.1.0)
Apache Spark 基准测试 该项目是硕士论文的成果,旨在成为 Apache Spark 框架的测试平台。 其基本思想是能够在软件和... apache.benchmark.config.global.master :我们想要运行基准的模式。 如果我们想要在本地执行
高性能PHP应用开发 前端优化,压力测试工具apache benchmark APC缓存
CIS_Apache_HTTP_Server_Benchmark_v3.0.0中详细讲述了apache配置的安全问题,可以更好的对apache httpd服务进行配置
GraphQL工作台 介绍 GraphQL Bench是用于对GraphQL服务进行基准测试和负载测试的多功能工具。 它可以作为CLI应用程序(本地或Docker)运行,还提供编程API。... ... 自动炮 K6 wrk2 每个基准测试工具都会产生实时输出,...
CIS 针对 Apache Tomcat 9 的安全测评文档
CIS Benchmarks Apache HTTP Server 2.2
CIS_Apache_Tomcat_9_Benchmark_v1.0.0.pdf CIS_Apple_iOS_12_Benchmark_v1.0.0.pdf CIS_Apple_iOS_13_and_iPadOS_13_Benchmark_v1.0.0.pdf CIS_CentOS_Linux_6_Benchmark_v2.1.0.pdf CIS_CentOS_Linux_8_Benchmark_...
我使用AB(Apache Benchmark)运行了一些基准测试。 结果如下: Jessies-MBP:~ jessie$ ab -n 16000 -c 10 -s 10 http://localhost:8888/README.md This is ApacheBench, Version 2.3 <$Revision: 1663405 $> ...
jar包,亲测可用