mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
aquatic http load test: track and display bandwidth
This commit is contained in:
parent
45940a05a9
commit
1c6f22db85
3 changed files with 27 additions and 13 deletions
|
|
@ -27,6 +27,8 @@ pub struct Statistics {
|
|||
pub responses_announce: AtomicUsize,
|
||||
pub responses_scrape: AtomicUsize,
|
||||
pub responses_failure: AtomicUsize,
|
||||
pub bytes_sent: AtomicUsize,
|
||||
pub bytes_received: AtomicUsize,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -42,14 +44,4 @@ pub struct LoadTestState {
|
|||
pub enum RequestType {
|
||||
Announce,
|
||||
Scrape
|
||||
}
|
||||
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct SocketWorkerLocalStatistics {
|
||||
pub requests: usize,
|
||||
pub response_peers: usize,
|
||||
pub responses_announce: usize,
|
||||
pub responses_scrape: usize,
|
||||
pub responses_failure: usize,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue