From aa691633374f50309aa5277e33e7e3be9849da5d Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 17 Jan 2025 03:16:24 +0930 Subject: [PATCH] docs(access): add page_speed test to contributing ref: #469 #471 --- CONTRIBUTING.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 462809943..9386ddb7b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -74,6 +74,25 @@ within the `deploy/` directory there is a docker compose file. running `docker c You may need to run migrations if your not mounting your own DB. to do this run `docker exec -ti centurion-erp python manage.py migrate` +## Page speed tests + +to run page speed tests (requires a working prometheus and grafa setup). use the following + + +``` bash + +clear; \ + K6_PROMETHEUS_RW_TREND_STATS="p(99),p(95),p(90),max,min" \ + K6_PROMETHEUS_RW_SERVER_URL=http://:9090/api/v1/write \ + BASE_URL="http://127.0.0.1:8002" \ + AUTH_TOKEN="< api token of superuser>" \ + k6 run \ + -o experimental-prometheus-rw \ + --tag "commit=$(git rev-parse HEAD)" \ + --tag "testid=" \ + test/page_speed.js + +``` # Old working docs