From a1a3819b41b7f61dea0a590f1e05d6ba3edf628d Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Tue, 26 Mar 2024 12:36:56 +0100 Subject: [PATCH] rename oldbench to bench1 --- bench/src/{oldbench.rs => bench1.rs} | 0 bench/src/lib.rs | 2 +- bench/src/main.rs | 6 +++--- bench/src/service_adapter.rs | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) rename bench/src/{oldbench.rs => bench1.rs} (100%) 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,