diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-06-12 16:50:07 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-06-14 16:18:19 +0100 |
commit | cb8ba8329d04ec7f43878107884c0fddc595fd82 (patch) | |
tree | 224e1e32f8cc391464f0d8f03b32d81da4a48b72 /k6-tests/ncmp/run-all-tests.sh | |
parent | f66694a076be41d83693423dec818493bcf66715 (diff) |
[k6] Add JVM warmup phase (#2)
To account for JVM warmup effect, the k6 test suite is run twice:
initially, the whole test suite is run without recording results.
- Added environment variables to allow setting total CM-handles and
batch size for registration. By reducing total CM-handles during
warm-up, many more operations will be run.
Issue-ID: CPS-2264
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ib1d1e76d31719d788a3e026797faa0a425b320a2
Diffstat (limited to 'k6-tests/ncmp/run-all-tests.sh')
-rwxr-xr-x | k6-tests/ncmp/run-all-tests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/k6-tests/ncmp/run-all-tests.sh b/k6-tests/ncmp/run-all-tests.sh index 80231b9809..f67b6ef069 100755 --- a/k6-tests/ncmp/run-all-tests.sh +++ b/k6-tests/ncmp/run-all-tests.sh @@ -31,6 +31,12 @@ ALL_TEST_SCRIPTS=( \ pushd "$(dirname "$0")" || exit 1 +echo 'Warming up JVM (warmup results will not be recorded)' +for test_script in "${ALL_TEST_SCRIPTS[@]}"; do + echo "[warmup] k6 run $test_script" + k6 --quiet -e TOTAL_CM_HANDLES=1000 -e REGISTRATION_BATCH_SIZE=10 -e K6_MODULE_NAME="$test_script" run "$test_script" > /dev/null +done + printf "Test Case\tCondition\tLimit\tActual\tResult\n" > summary.log number_of_failures=0 |