-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
94 lines (72 loc) · 2.15 KB
/
Copy pathCargo.toml
File metadata and controls
94 lines (72 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[package]
name = "grpc-benchmark"
version = "0.1.0"
edition = "2021"
description = "High-performance benchmark tool for Solana Yellowstone gRPC endpoints and raw shred streams"
license = "MIT OR Apache-2.0"
repository = "https://github.com/0xfnzero/grpc-benchmark"
homepage = "https://fnzero.dev"
readme = "README.md"
keywords = ["solana", "yellowstone-grpc", "benchmark", "shred", "latency"]
categories = ["command-line-utilities", "development-tools::profiling"]
[[bin]]
name = "grpc-comparison"
path = "src/bin/grpc_comparison.rs"
[[bin]]
name = "benchmark-jito"
path = "src/bin/benchmark_jito.rs"
[[bin]]
name = "latency-test"
path = "src/bin/latency_test.rs"
[[bin]]
name = "shred"
path = "src/bin/shred.rs"
[[bin]]
name = "shred-benchmark"
path = "src/bin/shred_benchmark.rs"
[[bin]]
name = "shred-comparison"
path = "src/bin/shred_comparison.rs"
[[bin]]
name = "grpc-vs-shred"
path = "src/bin/grpc_vs_shred.rs"
[dependencies]
# Yellowstone gRPC
yellowstone-grpc-client = "8.0.0"
yellowstone-grpc-proto = "8.0.0"
tonic = { version = "0.12", features = ["tls", "tls-roots"] }
# HTTP client (for Jito benchmarking)
reqwest = { version = "0.12", features = ["json"] }
# Async runtime
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "time", "sync", "net"] }
futures = "0.3"
# Configuration and CLI (used by specific binaries)
clap = { version = "4.5", features = ["derive", "env"] }
dotenvy = "0.15"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Colored output
colored = "2.0"
console = "0.15"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Statistics
statistical = "1.0"
# Time handling
chrono = "0.4"
# Error handling
anyhow = "1.0"
thiserror = "1.0"
openssl = { version = "0.10.73", features = ["vendored"] }
rustls = { version = "0.23", features = ["ring"] }
# Raw Solana shred decoding
bincode = "1.3"
socket2 = "0.5"
solana-entry = "2.3.7"
rustc-hash = "2"
[target.'cfg(target_arch = "x86_64")'.dependencies]
reed-solomon-erasure = { version = "6", features = ["simd-accel"] }
[target.'cfg(not(target_arch = "x86_64"))'.dependencies]
reed-solomon-erasure = "6"