Skip to content

Commit

Permalink
Merge pull request #7 from lsk569937453/dev
Browse files Browse the repository at this point in the history
Update the readme.
  • Loading branch information
lsk569937453 authored Apr 25, 2024
2 parents 517319f + 7c015d6 commit 90869bc
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,31 @@ Arguments:
<URL> The request url,like http://www.google.com
Options:
-t, --threads <Threads count> The thread count [default: 20]
-s, --sleep-seconds <The running seconds> The thread count [default: 3]
-h, --help Print help
-V, --version Print version
-c, --threads <Number of workers>
Number of workers to run concurrently. Total number of requests cannot be smaller than the concurrency level. Default is 50.. [default: 50]
-z, --sleep-seconds <Duration of application to send requests>
Duration of application to send requests. When duration is reached,application stops and exits [default: 5]
-h, --help
Print help
-V, --version
Print version
```

## The report
```
kt -c 100 -z 5 http://127.0.0.1:80
```
Run the above command to generate the following report:
```
Summary:
Total: 5000 millisecond
Slowest: 15 millisecond
Fastest: 0 millisecond
Average: 0 millisecond
Requests/sec: 156344
Total data: 44558040 bytes
Size/request: 57 bytes
Status code distribution:
[200] 781720 responses
```

0 comments on commit 90869bc

Please sign in to comment.