bench-utils -> bench

This commit is contained in:
aniketfuryrocks 2023-01-12 14:25:30 +05:30
parent f5c9732332
commit a37cbd2047
No known key found for this signature in database
GPG Key ID: 61F3C528CE664FF3
10 changed files with 16 additions and 17 deletions

8
Cargo.lock generated
View File

@ -444,15 +444,18 @@ dependencies = [
] ]
[[package]] [[package]]
name = "bench-utils" name = "bench"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"clap 4.0.32", "clap 4.0.32",
"csv",
"log", "log",
"serde", "serde",
"solana-client", "solana-client",
"solana-sdk", "solana-sdk",
"tokio",
"tracing-subscriber",
] ]
[[package]] [[package]]
@ -2253,13 +2256,12 @@ dependencies = [
"actix-web", "actix-web",
"anyhow", "anyhow",
"base64 0.21.0", "base64 0.21.0",
"bench-utils", "bench",
"bincode", "bincode",
"bs58", "bs58",
"bytes", "bytes",
"clap 4.0.32", "clap 4.0.32",
"const_env", "const_env",
"csv",
"dashmap", "dashmap",
"futures", "futures",
"jsonrpsee", "jsonrpsee",

View File

@ -6,16 +6,11 @@ description = "A lite version of solana rpc to send and confirm transactions"
[workspace] [workspace]
members = [ members = [
"bench-utils" "bench"
] ]
[[bench]]
name="tps"
harness=false
[dev-dependencies] [dev-dependencies]
bench-utils = { path = "./bench-utils" } bench = { path = "./bench" }
csv = "1.1.6"
[dependencies] [dependencies]
solana-client = "1.14.12" solana-client = "1.14.12"

View File

@ -1,5 +1,5 @@
[package] [package]
name = "bench-utils" name = "bench"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
@ -9,4 +9,7 @@ solana-sdk = "1.14.12"
log = "0.4.17" log = "0.4.17"
anyhow = "1.0.68" anyhow = "1.0.68"
serde = "1.0.152" serde = "1.0.152"
csv = "1.1.6"
clap = { version = "4.0.32", features = ["derive"] } clap = { version = "4.0.32", features = ["derive"] }
tokio = { version = "1.24.1", features = ["full"]}
tracing-subscriber = "0.3.16"

View File

@ -4,13 +4,13 @@ use std::{
time::{Duration, Instant}, time::{Duration, Instant},
}; };
use bench_utils::{ use bench::{
cli::Args, cli::Args,
helpers::BenchHelper, helpers::BenchHelper,
metrics::{AvgMetric, Metric}, metrics::{AvgMetric, Metric},
}; };
use clap::Parser; use clap::Parser;
use lite_rpc::DEFAULT_LITE_RPC_ADDR; //use lite_rpc::DEFAULT_LITE_RPC_ADDR;
use log::info; use log::info;
use solana_client::{nonblocking::rpc_client::RpcClient, rpc_client::SerializableTransaction}; use solana_client::{nonblocking::rpc_client::RpcClient, rpc_client::SerializableTransaction};
use solana_sdk::{ use solana_sdk::{

View File

@ -1,6 +1,6 @@
use std::sync::Arc; use std::sync::Arc;
use bench_utils::helpers::BenchHelper; use bench::helpers::BenchHelper;
use lite_rpc::DEFAULT_LITE_RPC_ADDR; use lite_rpc::DEFAULT_LITE_RPC_ADDR;
use log::info; use log::info;
use solana_client::{nonblocking::rpc_client::RpcClient, rpc_client::SerializableTransaction}; use solana_client::{nonblocking::rpc_client::RpcClient, rpc_client::SerializableTransaction};

View File

@ -1,7 +1,6 @@
use std::sync::Arc; use std::{sync::Arc, time::Duration};
use std::time::Duration;
use bench_utils::helpers::BenchHelper; use bench::helpers::BenchHelper;
use futures::future::try_join_all; use futures::future::try_join_all;
use lite_rpc::{ use lite_rpc::{
encoding::BinaryEncoding, encoding::BinaryEncoding,