diff --git a/bench/src/oldbench.rs b/bench/src/bench1.rs similarity index 100% rename from bench/src/oldbench.rs rename to bench/src/bench1.rs diff --git a/bench/src/lib.rs b/bench/src/lib.rs index 1ba2dd53..b636bf8a 100644 --- a/bench/src/lib.rs +++ b/bench/src/lib.rs @@ -24,7 +24,7 @@ use tokio::time::Instant; pub mod benches; pub mod helpers; pub mod metrics; -pub mod oldbench; +pub mod bench1; pub mod service_adapter; pub mod tx_size; diff --git a/bench/src/main.rs b/bench/src/main.rs index d9425d67..9f10a09d 100644 --- a/bench/src/main.rs +++ b/bench/src/main.rs @@ -1,7 +1,7 @@ use bench::{ helpers::BenchHelper, metrics::{AvgMetric, Metric, TxMetricData}, - oldbench, Args, + bench1, Args, }; use clap::Parser; @@ -9,7 +9,7 @@ use futures::future::join_all; use log::{error, info}; use solana_rpc_client::nonblocking::rpc_client::RpcClient; -use bench::oldbench::TransactionSize; +use bench::bench1::TransactionSize; use solana_sdk::{ commitment_config::CommitmentConfig, hash::Hash, signature::Keypair, signer::Signer, }; @@ -99,7 +99,7 @@ async fn main() { for seed in 0..runs { let funded_payer = Keypair::from_bytes(funded_payer.to_bytes().as_slice()).unwrap(); - tasks.push(tokio::spawn(oldbench::bench( + tasks.push(tokio::spawn(bench1::bench( rpc_client.clone(), tx_count, funded_payer, diff --git a/bench/src/service_adapter.rs b/bench/src/service_adapter.rs index 8528c398..3be1a5db 100644 --- a/bench/src/service_adapter.rs +++ b/bench/src/service_adapter.rs @@ -1,8 +1,8 @@ // adapter code for all from benchrunner-service use crate::metrics::{Metric, TxMetricData}; -use crate::oldbench; -use crate::oldbench::TransactionSize; +use crate::bench1; +use crate::bench1::TransactionSize; use crate::tx_size::TxSize; use log::debug; use solana_rpc_client::nonblocking::rpc_client::RpcClient; @@ -85,7 +85,7 @@ pub async fn bench_servicerunner( // not used unless log_txs is set to true let (tx_log_sx_null, _tx_log_rx) = tokio::sync::mpsc::unbounded_channel::(); - oldbench::bench( + bench1::bench( rpc_client.clone(), bench_config.tx_count, funded_payer,