Skip to content

Commit

Permalink
feat: delete long wait times between scenario tx
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed Jan 10, 2024
1 parent 3ba9e63 commit 373931c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions runner/src/scenario/ceramic/model_reuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ pub async fn scenario() -> Result<Scenario, GooseError> {
let get_instance_tx = transaction!(get_instance).set_name("get_instance");

Ok(scenario!("CeramicModelReuseScenario")
// After each transactions runs, sleep randomly from 1 to 5 seconds.
.set_wait_time(Duration::from_secs(1), Duration::from_secs(5))?
.register_transaction(test_start)
.register_transaction(create_instance_tx)
.register_transaction(get_instance_tx))
Expand Down
1 change: 0 additions & 1 deletion runner/src/scenario/ceramic/new_streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub async fn scenario() -> Result<Scenario, GooseError> {
transaction!(instantiate_large_model).set_name("instantiate_large_model");

Ok(scenario!("CeramicNewStreams")
.set_wait_time(Duration::from_millis(10), Duration::from_millis(100))?
.register_transaction(test_start)
.register_transaction(instantiate_small_model)
.register_transaction(instantiate_large_model))
Expand Down
2 changes: 0 additions & 2 deletions runner/src/scenario/ceramic/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ pub async fn scenario() -> Result<Scenario, GooseError> {
transaction!(query_models_post_update).set_name("post_update_query_models");

Ok(scenario!("CeramicQueryScenario")
// After each transactions runs, sleep randomly from 1 to 5 seconds.
.set_wait_time(Duration::from_secs(1), Duration::from_secs(5))?
.register_transaction(test_start)
.register_transaction(pre_query_models)
.register_transaction(update_models)
Expand Down
4 changes: 1 addition & 3 deletions runner/src/scenario/ceramic/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use ceramic_http_client::ceramic_event::StreamId;
use ceramic_http_client::CeramicHttpClient;
use ceramic_http_client::{ModelAccountRelation, ModelDefinition};
use goose::prelude::*;
use std::{sync::Arc, time::Duration};
use std::sync::Arc;
use tracing::instrument;

pub(crate) struct LoadTestUserData {
Expand Down Expand Up @@ -72,8 +72,6 @@ pub async fn scenario() -> Result<Scenario, GooseError> {
let get_large_model = transaction!(get_large_model).set_name("get_large_model");

Ok(scenario!("CeramicSimpleScenario")
// After each transactions runs, sleep randomly from 1 to 5 seconds.
.set_wait_time(Duration::from_secs(1), Duration::from_secs(5))?
.register_transaction(test_start)
.register_transaction(update_small_model)
.register_transaction(get_small_model)
Expand Down
1 change: 0 additions & 1 deletion runner/src/scenario/ceramic/write_only.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pub async fn scenario() -> Result<Scenario, GooseError> {
let update_large_model = transaction!(update_large_model).set_name("update_large_model");

Ok(scenario!("CeramicWriteOnly")
.set_wait_time(Duration::from_millis(9000), Duration::from_millis(11000))?
.register_transaction(setup)
.register_transaction(update_small_model)
.register_transaction(update_large_model))
Expand Down
2 changes: 0 additions & 2 deletions runner/src/scenario/ipfs_block_fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ pub fn scenario(topo: Topology) -> Result<Scenario> {
.set_on_stop();

Ok(scenario!("IpfsRpc")
// After each transactions runs, sleep randomly from 1 to 5 seconds.
.set_wait_time(Duration::from_secs(1), Duration::from_secs(5))?
// This transaction only runs one time when the user first starts.
.register_transaction(put)
// These next two transactions run repeatedly as long as the load test is running.
Expand Down

0 comments on commit 373931c

Please sign in to comment.