Apache benchmarking

本文展示了使用ApacheBench(ab)工具进行网站性能测试的结果。测试采用100并发请求进行1000次请求,得到平均请求每秒处理速度、平均响应时间和数据传输速率等关键指标。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

NAME
       ab - Apache HTTP server benchmarking tool

SYNOPSIS
       ab  [ -A auth-username:password ] [ -b windowsize ] [ -B local-address ] [ -c concurrency ] [ -C cookie-name=value ] [ -d ] [
       -e csv-file ] [ -f protocol ] [ -g gnuplot-file ] [ -h ] [ -H custom-header ] [ -i ] [ -k ] [ -n requests ] [ -p POST-file  ]
       [  -P proxy-auth-username:password ] [ -q ] [ -r ] [ -s timeout ] [ -S ] [ -t timelimit ] [ -T content-type ] [ -u PUT-file ]
       [ -v verbosity] [ -V ] [ -w ] [ -x <table>-attributes ] [ -X proxy[:port] ] [ -y <tr>-attributes ] [ -z <td>-attributes  ]  [
       -Z ciphersuite ] [http[s]://]hostname[:port]/path

erichan@erichan-HP-Compaq-6520s:~$ ab -n1000 -c100 http://192.168.0.163:8080/simple-service10/webapi/rest

Concurrency Level:      100
Time taken for tests:   7.626 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      5039000 bytes
HTML transferred:       4889000 bytes
Requests per second:    131.13 [#/sec] (mean)
Time per request:       762.574 [ms] (mean)
Time per request:       7.626 [ms] (mean, across all concurrent requests)
Transfer rate:          645.30 [Kbytes/sec] received

Percentage of the requests served within a certain time (ms)
  50%    543
  66%    613
  75%    638
  80%    723
  90%   1300
  95%   3365
  98%   3487
  99%   3543
 100%   3580 (longest request)


erichan@erichan-HP-Compaq-6520s:~$ ab -n1000 -c100 -H 'If-Modifed-Since:' http://192.168.0.163:8080/simple-service10/webapi/rest/last_modified?userId=eric

Concurrency Level:      100
Time taken for tests:   6.320 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      5128000 bytes
HTML transferred:       4889000 bytes
Requests per second:    158.23 [#/sec] (mean)
Time per request:       632.006 [ms] (mean)
Time per request:       6.320 [ms] (mean, across all concurrent requests)
Transfer rate:          792.37 [Kbytes/sec] received

Percentage of the requests served within a certain time (ms)
  50%    563
  66%    591
  75%    608
  80%    627
  90%    848
  95%   1767
  98%   2007
  99%   2082
 100%   2175 (longest request)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值