mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
udp load test: rewrite network loop, default to weight_announce=5
This commit is contained in:
parent
c5bf3901ea
commit
eb511c3a4c
3 changed files with 66 additions and 110 deletions
|
|
@ -85,10 +85,6 @@ pub struct HandlerConfig {
|
|||
pub torrent_selection_pareto_shape: f64,
|
||||
/// Probability that a generated peer is a seeder
|
||||
pub peer_seeder_probability: f64,
|
||||
/// Part of additional request creation calculation, meaning requests
|
||||
/// which are not dependent on previous responses from server. Higher
|
||||
/// means more.
|
||||
pub additional_request_factor: f64,
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
|
|
@ -125,9 +121,8 @@ impl Default for HandlerConfig {
|
|||
peer_seeder_probability: 0.25,
|
||||
scrape_max_torrents: 50,
|
||||
weight_connect: 0,
|
||||
weight_announce: 1,
|
||||
weight_announce: 5,
|
||||
weight_scrape: 1,
|
||||
additional_request_factor: 0.4,
|
||||
torrent_selection_pareto_shape: 2.0,
|
||||
}
|
||||
}
|
||||
|
|
@ -158,7 +153,6 @@ pub struct Statistics {
|
|||
pub struct LoadTestState {
|
||||
pub info_hashes: Arc<Vec<InfoHash>>,
|
||||
pub statistics: Arc<Statistics>,
|
||||
pub responses: Arc<AtomicUsize>,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Clone, Copy)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue