Skip to content

Commit

Permalink
rename oldbench to bench1
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Mar 26, 2024
1 parent 629adef commit a1a3819
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use tokio::time::Instant;
pub mod benches;
pub mod helpers;
pub mod metrics;
pub mod oldbench;
pub mod bench1;

Check warning on line 27 in bench/src/lib.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/bench/src/lib.rs
pub mod service_adapter;
pub mod tx_size;

Expand Down
6 changes: 3 additions & 3 deletions bench/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use bench::{

Check warning on line 1 in bench/src/main.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/bench/src/main.rs
helpers::BenchHelper,
metrics::{AvgMetric, Metric, TxMetricData},
oldbench, Args,
bench1, Args,
};
use clap::Parser;

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,
};
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions bench/src/service_adapter.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// adapter code for all from benchrunner-service

Check warning on line 1 in bench/src/service_adapter.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/bench/src/service_adapter.rs

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;
Expand Down Expand Up @@ -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::<TxMetricData>();

oldbench::bench(
bench1::bench(
rpc_client.clone(),
bench_config.tx_count,
funded_payer,
Expand Down

0 comments on commit a1a3819

Please sign in to comment.