Rename aquatic_load_tester to aquatic_bencher

This commit is contained in:
Joakim Frostegård 2023-12-28 17:42:25 +01:00
parent 6f9b0fce7b
commit af45feb911
10 changed files with 28 additions and 27 deletions

40
Cargo.lock generated
View file

@ -127,6 +127,24 @@ dependencies = [
"mimalloc", "mimalloc",
] ]
[[package]]
name = "aquatic_bencher"
version = "0.8.0"
dependencies = [
"anyhow",
"aquatic_udp",
"aquatic_udp_load_test",
"clap 4.4.11",
"indexmap 2.1.0",
"itertools 0.12.0",
"nonblock",
"once_cell",
"regex",
"serde",
"tempfile",
"toml 0.8.8",
]
[[package]] [[package]]
name = "aquatic_common" name = "aquatic_common"
version = "0.8.0" version = "0.8.0"
@ -232,24 +250,6 @@ dependencies = [
"urlencoding", "urlencoding",
] ]
[[package]]
name = "aquatic_load_tester"
version = "0.8.0"
dependencies = [
"anyhow",
"aquatic_udp",
"aquatic_udp_load_test",
"clap 4.4.11",
"indexmap 2.1.0",
"itertools 0.12.0",
"nonblock",
"once_cell",
"regex",
"serde",
"tempfile",
"toml 0.8.8",
]
[[package]] [[package]]
name = "aquatic_peer_id" name = "aquatic_peer_id"
version = "0.8.0" version = "0.8.0"
@ -3258,9 +3258,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
[[package]] [[package]]
name = "winnow" name = "winnow"
version = "0.5.30" version = "0.5.31"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b5c3db89721d50d0e2a673f5043fc4722f76dcc352d7b1ab8b8288bed4ed2c5" checksum = "97a4882e6b134d6c28953a387571f1acdd3496830d5e36c5e3a1075580ea641c"
dependencies = [ dependencies = [
"memchr", "memchr",
] ]

View file

@ -1,11 +1,11 @@
[workspace] [workspace]
members = [ members = [
"crates/bencher",
"crates/combined_binary", "crates/combined_binary",
"crates/common", "crates/common",
"crates/http", "crates/http",
"crates/http_load_test", "crates/http_load_test",
"crates/http_protocol", "crates/http_protocol",
"crates/load_tester",
"crates/peer_id", "crates/peer_id",
"crates/toml_config", "crates/toml_config",
"crates/toml_config_derive", "crates/toml_config_derive",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "aquatic_load_tester" name = "aquatic_bencher"
description = "Automated load testing of aquatic and other BitTorrent trackers (Linux only)" description = "Automated benchmarking of aquatic and other BitTorrent trackers (Linux only)"
keywords = ["peer-to-peer", "torrent", "bittorrent"] keywords = ["peer-to-peer", "torrent", "bittorrent"]
version.workspace = true version.workspace = true
authors.workspace = true authors.workspace = true
@ -8,10 +8,11 @@ edition.workspace = true
license.workspace = true license.workspace = true
repository.workspace = true repository.workspace = true
rust-version.workspace = true rust-version.workspace = true
readme.workspace = true
readme = "./README.md"
[[bin]] [[bin]]
name = "aquatic_load_tester" name = "aquatic_bencher"
[features] [features]
default = ["udp"] default = ["udp"]

View file

@ -13,10 +13,10 @@ struct Args {
/// executables on /// executables on
#[arg(long, default_value_t = CpuMode::Split)] #[arg(long, default_value_t = CpuMode::Split)]
cpu_mode: CpuMode, cpu_mode: CpuMode,
/// Minimum number of tracker cpu cores to run load tests for /// Minimum number of tracker cpu cores to run benchmarks for
#[arg(long)] #[arg(long)]
min_cores: Option<usize>, min_cores: Option<usize>,
/// Maximum number of tracker cpu cores to run load tests for /// Maximum number of tracker cpu cores to run benchmarks for
#[arg(long)] #[arg(long)]
max_cores: Option<usize>, max_cores: Option<usize>,
#[command(subcommand)] #[command(subcommand)]