mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
bencher: update config defaults, use load test max_response_peers
This commit is contained in:
parent
bbe09bd0df
commit
df13ae9399
3 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ struct Args {
|
|||
#[arg(long, default_value_t = Priority::Medium)]
|
||||
min_priority: Priority,
|
||||
/// How long to run each load test for
|
||||
#[arg(long, default_value_t = 60)]
|
||||
#[arg(long, default_value_t = 90)]
|
||||
duration: usize,
|
||||
/// Only include data for last N seconds of load test runs.
|
||||
///
|
||||
|
|
@ -33,7 +33,7 @@ struct Args {
|
|||
/// maximum throughput
|
||||
///
|
||||
/// 0 = use data for whole run
|
||||
#[arg(long, default_value_t = 0)]
|
||||
#[arg(long, default_value_t = 30)]
|
||||
summarize_last: usize,
|
||||
#[command(subcommand)]
|
||||
command: Command,
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ impl ProcessRunner for AquaticUdpRunner {
|
|||
c.socket_workers = self.socket_workers;
|
||||
c.swarm_workers = self.swarm_workers;
|
||||
c.network.address = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::LOCALHOST, 3000));
|
||||
c.protocol.max_response_peers = 50;
|
||||
c.protocol.max_response_peers = 30;
|
||||
|
||||
let c = toml::to_string_pretty(&c)?;
|
||||
|
||||
|
|
@ -391,8 +391,8 @@ impl ProcessRunner for ChihayaUdpRunner {
|
|||
udp:
|
||||
addr: "127.0.0.1:3000"
|
||||
private_key: "abcdefghijklmnopqrst"
|
||||
max_numwant: 50
|
||||
default_numwant: 50
|
||||
max_numwant: 30
|
||||
default_numwant: 30
|
||||
storage:
|
||||
name: "memory"
|
||||
"#,
|
||||
|
|
@ -438,6 +438,7 @@ impl ProcessRunner for AquaticUdpLoadTestRunner {
|
|||
c.duration = self.parameters.duration;
|
||||
c.summarize_last = self.parameters.summarize_last;
|
||||
|
||||
c.requests.announce_peers_wanted = 30;
|
||||
c.requests.weight_connect = 0;
|
||||
c.requests.weight_announce = 100;
|
||||
c.requests.weight_scrape = 1;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ cd ..
|
|||
git clone git://erdgeist.org/opentracker
|
||||
cd opentracker
|
||||
sed -i "s/^OPTS_production=-O3/OPTS_production=-O3 -march=native -mtune=native/g" Makefile
|
||||
sed -i "s/if \(numwant > 200\) numwant = 200/if (numwant > 50) numwant = 50/g" ot_udp.c
|
||||
make
|
||||
sudo cp ./opentracker /usr/local/bin/
|
||||
git log --oneline | head -n 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue