ab

ab #

apt install apache2-utils -y


# -c 10 表示并发用户数为10
# -n 100 表示请求总数为100
ab -c 10 -n 100 http://localhost:8080

# This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
# Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
# Licensed to The Apache Software Foundation, http://www.apache.org/

# Benchmarking localhost (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
# Completed 1000 requests
# Finished 1000 requests


# Server Software:
# Server Hostname:        localhost
# Server Port:            8080

# Document Path:          /
# Document Length:        12 bytes

# Concurrency Level:      100
# Time taken for tests:   0.090 seconds
# Complete requests:      1000
# Failed requests:        0
# Total transferred:      174000 bytes
# HTML transferred:       12000 bytes
# Requests per second:    11112.84 [#/sec] (mean)
# Time per request:       8.999 [ms] (mean)
# Time per request:       0.090 [ms] (mean, across all concurrent requests)
# Transfer rate:          1888.31 [Kbytes/sec] received

# Connection Times (ms)
#               min  mean[+/-sd] median   max
# Connect:        0    3   1.0      3       6
# Processing:     1    5   5.3      4      24
# Waiting:        0    4   5.5      2      22
# Total:          5    9   5.0      7      26

# Percentage of the requests served within a certain time (ms)
#   50%      7
#   66%      7
#   75%      8
#   80%      8
#   90%     22
#   95%     23
#   98%     25
#   99%     25
#  100%     26 (longest request)

本文访问量

本站总访问量

本站总访客数