Commit graph

48 commits

Author SHA1 Message Date
Joakim Frostegård
cedf0b61ca Exit with error message on unrecognized config keys 2022-07-05 11:26:46 +02:00
Joakim Frostegård
0a63ee3ce7 load testers: name worker threads "load-test" 2022-04-06 19:15:01 +02:00
Joakim Frostegård
bd6764afaf Move aquatic_cli_helpers code into aquatic_common and remove crate 2022-04-06 19:02:39 +02:00
Joakim Frostegård
6c149331dc Rewrite CpuPinningConfig implementation to support aquatic_toml_config 2022-04-04 22:38:47 +02:00
Joakim Frostegård
fb607ac0c2 Improve CPU pinning 2022-03-30 22:53:15 +02:00
Joakim Frostegård
f5b1cd5525 Add command-line option for printing version and commit info 2022-03-24 16:17:17 +01:00
Joakim Frostegård
0f60ffbb75 udp load test: minor performance improvements 2022-02-20 12:07:28 +01:00
Joakim Frostegård
903010dbe1 udp: use action 1 for IPv6 announce responses; refactor protocol code
According to BEP015, action 1 is to be used.
2022-02-20 01:35:24 +01:00
Joakim Frostegård
14a4c10546 s/toml_config/aquatic_toml_config/ 2022-02-19 15:11:00 +01:00
Joakim Frostegård
a208775104
Include documentation in printed config files (#41)
* Start work on printing toml config with comments

* WIP: toml_config: extract default values for fields

* WIP: toml_config: handle single-level nested structs

* WIP: toml_config: improve comment handling, std type trait impls

* WIP: toml_config: add Private trait, improve comment handling, clean up

* toml_config: fix default value bug; improve tests

* Use toml_config in all applicable crates; add toml_config enum support

* toml_config: improve comments

* toml_config_derive: support enum comments

* Improve config comments for udp, cli_helpers, common

* Improve config comments

* Add tests for Config struct TomlConfig implementations

* Improve Config comments

* Improve Config comments

* ws, http: add config comments for tls cert and private key lines

* small fixes to toml_config and toml_config_derive

* Run cargo fmt

* Fix typo in several config comments

* Update README

* Update README
2021-12-26 11:33:27 +01:00
Joakim Frostegård
9d8f9d8f7c udp load test: remove ThreadId newtype, use poll token 0 in all workers 2021-11-28 22:33:55 +01:00
Joakim Frostegård
f068d86e0d udp load test: set MAX_PACKET_SIZE to 8192 2021-11-28 22:30:22 +01:00
Joakim Frostegård
e972903451 udp load test: move network.rs and handler.rs into new worker module 2021-11-28 22:28:50 +01:00
Joakim Frostegård
411716e333 udo load test: config: rename "handler" to "requests", refactor 2021-11-28 22:18:33 +01:00
Joakim Frostegård
53b46d24f2 udp load test: set default additional_request_probability to 0.5 2021-11-28 03:51:59 +01:00
Joakim Frostegård
14474fb5e3 udp load test: improve statistics printing code 2021-11-28 01:10:42 +01:00
Joakim Frostegård
6605055b3d udp load test: improve statistics code 2021-11-28 01:05:52 +01:00
Joakim Frostegård
b70cbe6349 udp load test: use relaxed ordering, more accurate stats, improve code 2021-11-28 01:02:23 +01:00
Joakim Frostegård
039eeae160 udo load test: report avg for all response types 2021-11-28 00:49:32 +01:00
Joakim Frostegård
f6a33dac8a udp load test: enable tuning additional request frequency 2021-11-28 00:29:41 +01:00
Joakim Frostegård
71a093dcec udp load test: run cargo fmt 2021-11-18 22:42:37 +01:00
Joakim Frostegård
fc6f3c299e udp load test: move config to own file, clean up imports 2021-11-18 22:42:37 +01:00
Joakim Frostegård
eb511c3a4c udp load test: rewrite network loop, default to weight_announce=5 2021-11-18 22:42:37 +01:00
Joakim Frostegård
c5bf3901ea run cargo fmt 2021-11-18 22:42:37 +01:00
Joakim Frostegård
5440157a95 udp load test: use only one type of worker for better performance 2021-11-18 22:42:36 +01:00
Joakim Frostegård
5d8a4dd38c udp load test: default to multiple client ips; improve docs 2021-11-18 22:42:36 +01:00
Joakim Frostegård
f3e41148fe udp: split AnnounceResponse into V4 and V6 versions 2021-11-18 22:42:36 +01:00
Joakim Frostegård
5a34bd4b81 udp load test: fix ipv6 issues, improve documentation 2021-11-18 22:42:36 +01:00
Joakim Frostegård
4f8328b70a Feature-gate CPU pinning, since it only works on Linux 2021-11-09 11:40:16 +01:00
Joakim Frostegård
b05cbc563d udp load test: fix cpu pinning issue 2021-11-07 15:10:39 +01:00
Joakim Frostegård
6eaac536ba udp load test: enable log crate logging 2021-11-07 11:29:15 +01:00
Joakim Frostegård
aa332ab296 aquatic_common, udp, udp load test: improve cpu pinning 2021-11-07 11:04:31 +01:00
Joakim Frostegård
072f064138 Run cargo fmt 2021-10-23 12:42:56 +02:00
Joakim Frostegård
53ccedc194 aquatic_udp_load_test: set core affinities 2021-10-22 00:15:41 +02:00
Joakim Frostegård
d172fc4f8c Upgrade socket2 2021-08-15 23:32:59 +02:00
Joakim Frostegård
d0e716f80b Run rustfmt, clean up aquatic_http_protocol/Cargo.toml 2021-08-15 22:26:11 +02:00
Joakim Frostegård
e1260d14de Update rand to 0.8 and rand_distr to 0.4 2021-02-10 18:36:23 +01:00
Joakim Frostegård
9efc1fc66a add aquatic crate with master executable, refactor cli_helpers 2020-08-13 00:13:01 +02:00
Joakim Frostegård
8d58f8bb70 init logger in aquatic_cli_helpers crate 2020-08-02 21:21:58 +02:00
Joakim Frostegård
ea6a4c2635 refactor aquatic_udp_protocol, notably make converters trait fns 2020-08-02 01:23:11 +02:00
Joakim Frostegård
561cc3db55 fix more clippy warnings 2020-08-02 00:36:56 +02:00
Joakim Frostegård
0bebbe4018 http and udp load tests: fix cli program names 2020-08-01 06:43:43 +02:00
Joakim Frostegård
4067e420c3 udp: response parsing: parse ipv6 peers on action 4 2020-07-31 06:27:05 +02:00
Joakim Frostegård
2f13e1e1a8 rename crate "cli_helpers" to "aquatic_cli_helpers" 2020-05-25 19:27:22 +02:00
Joakim Frostegård
bc4ada104d rename crate "bittorrent_udp" to "aquatic_udp_protocol" 2020-05-25 19:21:52 +02:00
Joakim Frostegård
5babd8eda0 aquatic udp load test: use socket2 instead of net2 2020-05-25 18:42:23 +02:00
Joakim Frostegård
526faa9aab cli_helpers: use anyhow in app fn; aquatic_ws: reorganize error handling 2020-05-23 14:05:50 +02:00
Joakim Frostegård
1b8d74e26d rename aquatic to aquatic_udp, same for bench and load test crates 2020-05-11 16:55:46 +02:00