command
Version:
v2.1.64
Opens a new window with list of versions in this module.
Published: Nov 22, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Daemon Proxy
Build and Run
-
Build tool:
go build -o bin/stress test/stress/main.go
-
Run stress:
bin/stress -connections 100 -duration 1s -proxy http://127.0.0.1:65001 \
--url http://localhost/misc/d7y-test/blobs/sha256/128K
Example output:
Latency
avg 17.286522ms
min 617.801µs
max 84.201941ms
Latency Distribution
50% 11.39049ms
75% 18.308966ms
90% 49.052485ms
95% 55.886513ms
99% 65.013042ms
HTTP codes
200 5849
Throughput 731.1MB
Request 5849/s
CLI Reference
Usage of ./stress:
-connections int
concurrency count of connections (default 100)
-duration duration
testing duration (default 1m40s)
-output string
all request statistics (default "/tmp/statistics.txt")
-proxy string
target proxy for downloading, example: http://127.0.0.1:65001
-url string
target url for stress testing, example: http://localhost
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.