-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from blockworks-foundation/feature/benchrunne…
…r-tc1-tc2 benchrunner tc2 integration
- Loading branch information
Showing
9 changed files
with
329 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
use crate::benches::confirmation_rate; | ||
use crate::benches::confirmation_rate::send_bulk_txs_and_wait; | ||
use crate::service_adapter1::BenchConfig; | ||
use crate::BenchmarkTransactionParams; | ||
use log::error; | ||
use solana_rpc_client::nonblocking::rpc_client::RpcClient; | ||
use solana_sdk::signature::Keypair; | ||
use std::sync::Arc; | ||
use std::time::Duration; | ||
|
||
pub async fn benchnew_confirmation_rate_servicerunner( | ||
bench_config: &BenchConfig, | ||
rpc_addr: String, | ||
funded_payer: Keypair, | ||
) -> confirmation_rate::Metric { | ||
let rpc = Arc::new(RpcClient::new(rpc_addr)); | ||
let tx_params = BenchmarkTransactionParams { | ||
tx_size: bench_config.tx_size, | ||
cu_price_micro_lamports: bench_config.cu_price_micro_lamports, | ||
}; | ||
let max_timeout = Duration::from_secs(60); | ||
let result = send_bulk_txs_and_wait( | ||
&rpc, | ||
&funded_payer, | ||
bench_config.tx_count, | ||
&tx_params, | ||
max_timeout, | ||
) | ||
.await; | ||
result.unwrap_or_else(|err| { | ||
error!("Failed to send bulk txs and wait: {}", err); | ||
confirmation_rate::Metric::default() | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
### Inspect the BenchRunner executions | ||
```postgresql | ||
SELECT * FROM benchrunner.bench_runs | ||
ORDER BY ts DESC | ||
``` | ||
|
||
### Bench1 (old bench) | ||
```postgresql | ||
SELECT * FROM benchrunner.bench_metrics_bench1 | ||
ORDER BY ts DESC | ||
``` | ||
|
||
### Bench Confirmation Rate | ||
```postgresql | ||
SELECT * FROM benchrunner.bench_metrics_confirmation_rate | ||
ORDER BY ts DESC | ||
``` | ||
|
Oops, something went wrong.