Skip to content

Commit 2602d7d

Browse files
apollo_network_benchmark: initial commit
1 parent 3bce54f commit 2602d7d

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ members = [
6060
"crates/apollo_monitoring_endpoint",
6161
"crates/apollo_monitoring_endpoint_config",
6262
"crates/apollo_network",
63+
"crates/apollo_network_benchmark",
6364
"crates/apollo_network_types",
6465
"crates/apollo_node",
6566
"crates/apollo_node_config",
@@ -177,6 +178,7 @@ apollo_metrics = { path = "crates/apollo_metrics", version = "0.0.0" }
177178
apollo_monitoring_endpoint.path = "crates/apollo_monitoring_endpoint"
178179
apollo_monitoring_endpoint_config.path = "crates/apollo_monitoring_endpoint_config"
179180
apollo_network.path = "crates/apollo_network"
181+
apollo_network_benchmark.path = "crates/apollo_network_benchmark"
180182
apollo_network_types.path = "crates/apollo_network_types"
181183
apollo_node.path = "crates/apollo_node"
182184
apollo_node_config.path = "crates/apollo_node_config"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[package]
2+
name = "apollo_network_benchmark"
3+
version.workspace = true
4+
edition.workspace = true
5+
repository.workspace = true
6+
license-file.workspace = true
7+
8+
[features]
9+
testing = []
10+
11+
[[bin]]
12+
name = "broadcast_network_stress_test_node"
13+
path = "bin/broadcast_network_stress_test_node/main.rs"
14+
15+
[dependencies]
16+
apollo_metrics.workspace = true
17+
apollo_network.workspace = true
18+
clap = { workspace = true, features = ["derive"] }
19+
futures.workspace = true
20+
lazy_static.workspace = true
21+
libp2p = { workspace = true, features = ["identify"] }
22+
metrics-exporter-prometheus.workspace = true
23+
sysinfo.workspace = true
24+
tokio = { workspace = true, features = ["full", "sync"] }
25+
tokio-metrics = { workspace = true, features = ["metrics-rs-integration", "rt"] }
26+
tracing.workspace = true
27+
tracing-subscriber.workspace = true
28+
29+
30+
[dev-dependencies]
31+
assert_matches.workspace = true
32+
rstest.workspace = true
33+
tokio = { workspace = true, features = ["full", "sync", "test-util"] }
34+
tokio-stream.workspace = true
35+
36+
[lints]
37+
workspace = true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//! Runs a node that stress tests the p2p communication of the network.
2+
3+
#[tokio::main]
4+
async fn main() -> Result<(), Box<dyn std::error::Error>> {}

0 commit comments

Comments
 (0)