diff --git a/crates/bencher/README.md b/crates/bencher/README.md index edfeb62..70cc8a0 100644 --- a/crates/bencher/README.md +++ b/crates/bencher/README.md @@ -1,3 +1,3 @@ -# aquatic_load_tester +# aquatic_bencher -Automated load testing of aquatic and other BitTorrent trackers. Linux only. \ No newline at end of file +Automated benchmarking of aquatic and other BitTorrent trackers. Linux only. \ No newline at end of file diff --git a/crates/bencher/src/protocols/udp.rs b/crates/bencher/src/protocols/udp.rs index 5ad3f60..4c906d6 100644 --- a/crates/bencher/src/protocols/udp.rs +++ b/crates/bencher/src/protocols/udp.rs @@ -266,6 +266,7 @@ impl ProcessRunner for AquaticUdpRunner { c.socket_workers = self.socket_workers; c.swarm_workers = self.swarm_workers; + c.protocol.max_response_peers = 50; let c = toml::to_string_pretty(&c)?; @@ -363,6 +364,8 @@ impl ProcessRunner for ChihayaUdpRunner { udp: addr: "127.0.0.1:3000" private_key: "abcdefghijklmnopqrst" + max_numwant: 50 + default_numwant: 50 storage: name: "memory" "#, @@ -412,7 +415,7 @@ impl ProcessRunner for AquaticUdpLoadTestRunner { c.workers = self.workers as u8; c.duration = 60; - c.requests.weight_connect = 100; + c.requests.weight_connect = 0; c.requests.weight_announce = 100; c.requests.weight_scrape = 1; diff --git a/scripts/bench/setup-udp-bookworm.sh b/scripts/bench/setup-udp-bookworm.sh index 59a7f5b..84d111a 100755 --- a/scripts/bench/setup-udp-bookworm.sh +++ b/scripts/bench/setup-udp-bookworm.sh @@ -24,6 +24,8 @@ make 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/ cd ..