mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 15:35:10 +00:00
chore(load-test): add csv output (#8783)
# Which Problems Are Solved Load tests currently do not output details about the data messured. # How the Problems Are Solved Added the `--out` flag to all load tests
This commit is contained in:
parent
c21e171519
commit
cc8d4fe17c
1
.gitignore
vendored
1
.gitignore
vendored
@ -87,4 +87,5 @@ go.work.sum
|
|||||||
load-test/node_modules
|
load-test/node_modules
|
||||||
load-test/yarn-error.log
|
load-test/yarn-error.log
|
||||||
load-test/dist
|
load-test/dist
|
||||||
|
load-test/output/*
|
||||||
.vercel
|
.vercel
|
||||||
|
@ -3,50 +3,51 @@ DURATION ?= "200s"
|
|||||||
ZITADEL_HOST ?=
|
ZITADEL_HOST ?=
|
||||||
ADMIN_LOGIN_NAME ?=
|
ADMIN_LOGIN_NAME ?=
|
||||||
ADMIN_PASSWORD ?=
|
ADMIN_PASSWORD ?=
|
||||||
|
DATE := $(shell date '+%d-%H:%M:%S')
|
||||||
|
|
||||||
K6 := ./../../xk6-modules/k6
|
K6 := ./../../xk6-modules/k6
|
||||||
|
|
||||||
.PHONY: human_password_login
|
.PHONY: human_password_login
|
||||||
human_password_login: bundle
|
human_password_login: bundle
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/human_password_login.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/human_password_login.js --vus ${VUS} --duration ${DURATION} --out csv=output/human_password_login_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: machine_pat_login
|
.PHONY: machine_pat_login
|
||||||
machine_pat_login: bundle
|
machine_pat_login: bundle
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_pat_login.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_pat_login.js --vus ${VUS} --duration ${DURATION} --out csv=output/machine_pat_login_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: machine_client_credentials_login
|
.PHONY: machine_client_credentials_login
|
||||||
machine_client_credentials_login: bundle
|
machine_client_credentials_login: bundle
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_client_credentials_login.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_client_credentials_login.js --vus ${VUS} --duration ${DURATION} --out csv=output/machine_client_credentials_login_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: user_info
|
.PHONY: user_info
|
||||||
user_info: bundle
|
user_info: bundle
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/user_info.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/user_info.js --vus ${VUS} --duration ${DURATION} --out csv=output/user_info_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: manipulate_user
|
.PHONY: manipulate_user
|
||||||
manipulate_user: bundle
|
manipulate_user: bundle
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/manipulate_user.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/manipulate_user.js --vus ${VUS} --duration ${DURATION} --out csv=output/manipulate_user_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: introspect
|
.PHONY: introspect
|
||||||
introspect: ensure_modules bundle
|
introspect: ensure_modules bundle
|
||||||
go install go.k6.io/xk6/cmd/xk6@latest
|
go install go.k6.io/xk6/cmd/xk6@latest
|
||||||
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/introspection.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/introspection.js --vus ${VUS} --duration ${DURATION} --out csv=output/introspect_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: add_session
|
.PHONY: add_session
|
||||||
add_session: bundle
|
add_session: bundle
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/session.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/session.js --vus ${VUS} --duration ${DURATION} --out csv=output/add_session_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: machine_jwt_profile_grant
|
.PHONY: machine_jwt_profile_grant
|
||||||
machine_jwt_profile_grant: ensure_modules ensure_key_pair bundle
|
machine_jwt_profile_grant: ensure_modules ensure_key_pair bundle
|
||||||
go install go.k6.io/xk6/cmd/xk6@latest
|
go install go.k6.io/xk6/cmd/xk6@latest
|
||||||
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant.js --vus ${VUS} --duration ${DURATION} --out csv=output/machine_jwt_profile_grant_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: machine_jwt_profile_grant_single_user
|
.PHONY: machine_jwt_profile_grant_single_user
|
||||||
machine_jwt_profile_grant_single_user: ensure_modules ensure_key_pair bundle
|
machine_jwt_profile_grant_single_user: ensure_modules ensure_key_pair bundle
|
||||||
go install go.k6.io/xk6/cmd/xk6@latest
|
go install go.k6.io/xk6/cmd/xk6@latest
|
||||||
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
cd ../../xk6-modules && xk6 build --with xk6-zitadel=.
|
||||||
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant_single_user.js --vus ${VUS} --duration ${DURATION}
|
${K6} run --summary-trend-stats "min,avg,max,p(50),p(95),p(99)" dist/machine_jwt_profile_grant_single_user.js --vus ${VUS} --duration ${DURATION} --out csv=output/machine_jwt_profile_grant_single_user_${DATE}.csv
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
@ -63,6 +64,7 @@ endif
|
|||||||
|
|
||||||
.PHONY: bundle
|
.PHONY: bundle
|
||||||
bundle:
|
bundle:
|
||||||
|
mkdir -p output
|
||||||
npm i
|
npm i
|
||||||
npm run bundle
|
npm run bundle
|
||||||
go install go.k6.io/xk6/cmd/xk6@latest
|
go install go.k6.io/xk6/cmd/xk6@latest
|
||||||
|
Loading…
Reference in New Issue
Block a user