File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed
performance-testing/uid2-operator Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 88 script :
99 configMap :
1010 name : operator-stress-test
11- file : k6-uid2-operator.js
11+ file : k6-uid2-operator-encrypt-inline .js
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import encoding from 'k6/encoding';
33import { check } from 'k6' ;
44import http from 'k6/http' ;
55
6- const generateVUs = 10 ;
7- const refreshVUs = 10 ;
8- const identityMapVUs = 10 ;
9- const testDuration = '30s '
6+ const generateVUs = 500 ;
7+ const refreshVUs = 500 ;
8+ const identityMapVUs = 500 ;
9+ const testDuration = '10m '
1010
1111//30 warm up on each
1212// 5 min each
@@ -18,15 +18,15 @@ export const options = {
1818 noConnectionReuse : false ,
1919 scenarios : {
2020 // Warmup scenarios
21-
21+
2222 tokenGenerateWarmup : {
2323 executor : 'ramping-vus' ,
2424 exec : 'tokenGenerate' ,
2525 stages : [
2626 { duration : '30s' , target : generateVUs }
2727 ] ,
2828 gracefulRampDown : '0s' ,
29- } ,
29+ } ,
3030 tokenRefreshWarmup : {
3131 executor : 'ramping-vus' ,
3232 exec : 'tokenRefresh' ,
@@ -404,4 +404,3 @@ const generateSinceTimestampStr = () => {
404404
405405 return `${ year } -${ month } -${ day } T00:00:00` ;
406406} ;
407-
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo " Delete existing tests"
4+ kubectl delete -f ./k6-test-resource.yml
5+ kubectl delete configmap operator-stress-test
6+
7+ echo " Starting tests"
8+ kubectl create configmap operator-stress-test --from-file ./k6-uid2-operator-encrypt-inline.js
9+ kubectl apply -f ./k6-test-resource.yml
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo " Delete existing tests"
4+ kubectl delete -f ./k6-test-resource.yml
5+ kubectl delete configmap operator-stress-test
You can’t perform that action at this time.
0 commit comments