From 8c69113e6d842b4211bf5654a26b875fe81aca5c Mon Sep 17 00:00:00 2001 From: danielxiangzl Date: Wed, 18 Dec 2024 11:30:54 -0800 Subject: [PATCH] test --- testsuite/forge-cli/src/suites/realistic_environment.rs | 4 +--- testsuite/testcases/src/performance_test.rs | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/testsuite/forge-cli/src/suites/realistic_environment.rs b/testsuite/forge-cli/src/suites/realistic_environment.rs index c79914eea39bf..92da302faca8f 100644 --- a/testsuite/forge-cli/src/suites/realistic_environment.rs +++ b/testsuite/forge-cli/src/suites/realistic_environment.rs @@ -83,15 +83,13 @@ pub(crate) fn realistic_env_sweep_wrap( pub(crate) fn realistic_env_load_sweep_test() -> ForgeConfig { realistic_env_sweep_wrap(10, 5, LoadVsPerfBenchmark { test: Box::new(PerformanceBenchmark), - workloads: Workloads::TPS(vec![1000, 5000, 10000, 12000, 13000, 14000, 15000]), + workloads: Workloads::TPS(vec![1000, 2500, 5000, 7500, 10000]), criteria: [ (95, 0.9, 1.1, 1.2, 0), (95, 0.9, 1.1, 1.2, 0), (95, 0.9, 1.1, 1.2, 0), (95, 0.9, 1.1, 1.2, 0), (95, 0.9, 1.1, 1.2, 0), - (95, 0.9, 1.1, 1.2, 0), - (95, 0.9, 1.1, 1.2, 0), ] .into_iter() .map( diff --git a/testsuite/testcases/src/performance_test.rs b/testsuite/testcases/src/performance_test.rs index ebcdead6d6481..151d5e9bdb3fd 100644 --- a/testsuite/testcases/src/performance_test.rs +++ b/testsuite/testcases/src/performance_test.rs @@ -26,7 +26,8 @@ impl NetworkLoadTest for PerformanceBenchmark { duration: Duration, ) -> Result<()> { let validators = { swarm.read().await.get_validator_clients_with_names() }; - let num_bad_leaders = validators.len() / 5; + // 10 vals, test 1,2,3 failures + let num_bad_leaders = 3; for (name, validator) in validators[..num_bad_leaders].iter() { validator .set_failpoint(