mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Update bencher settings and setup script
This commit is contained in:
parent
42a9e8f99e
commit
87e7811751
3 changed files with 8 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
# aquatic_load_tester
|
# aquatic_bencher
|
||||||
|
|
||||||
Automated load testing of aquatic and other BitTorrent trackers. Linux only.
|
Automated benchmarking of aquatic and other BitTorrent trackers. Linux only.
|
||||||
|
|
@ -266,6 +266,7 @@ impl ProcessRunner for AquaticUdpRunner {
|
||||||
|
|
||||||
c.socket_workers = self.socket_workers;
|
c.socket_workers = self.socket_workers;
|
||||||
c.swarm_workers = self.swarm_workers;
|
c.swarm_workers = self.swarm_workers;
|
||||||
|
c.protocol.max_response_peers = 50;
|
||||||
|
|
||||||
let c = toml::to_string_pretty(&c)?;
|
let c = toml::to_string_pretty(&c)?;
|
||||||
|
|
||||||
|
|
@ -363,6 +364,8 @@ impl ProcessRunner for ChihayaUdpRunner {
|
||||||
udp:
|
udp:
|
||||||
addr: "127.0.0.1:3000"
|
addr: "127.0.0.1:3000"
|
||||||
private_key: "abcdefghijklmnopqrst"
|
private_key: "abcdefghijklmnopqrst"
|
||||||
|
max_numwant: 50
|
||||||
|
default_numwant: 50
|
||||||
storage:
|
storage:
|
||||||
name: "memory"
|
name: "memory"
|
||||||
"#,
|
"#,
|
||||||
|
|
@ -412,7 +415,7 @@ impl ProcessRunner for AquaticUdpLoadTestRunner {
|
||||||
c.workers = self.workers as u8;
|
c.workers = self.workers as u8;
|
||||||
c.duration = 60;
|
c.duration = 60;
|
||||||
|
|
||||||
c.requests.weight_connect = 100;
|
c.requests.weight_connect = 0;
|
||||||
c.requests.weight_announce = 100;
|
c.requests.weight_announce = 100;
|
||||||
c.requests.weight_scrape = 1;
|
c.requests.weight_scrape = 1;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ make
|
||||||
cd ..
|
cd ..
|
||||||
git clone git://erdgeist.org/opentracker
|
git clone git://erdgeist.org/opentracker
|
||||||
cd 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
|
make
|
||||||
sudo cp ./opentracker /usr/local/bin/
|
sudo cp ./opentracker /usr/local/bin/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue