File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## k6 load testing
22
3- ### Prerequisites
3+ ### Usage (Docker)
44
5- - Install [ k6] ( https://grafana.com/docs/k6/latest/set-up/install-k6/ )
5+ ``` shell
6+ ./scripts/k6.sh -e BACKEND_BASE_URL=# ### -e FRONTEND_BASE_URL=####
7+ ```
68
7- ### Usage
9+ ### Usage (local k6)
10+
11+ - Install [ k6] ( https://grafana.com/docs/k6/latest/set-up/install-k6/ )
812
913``` shell
1014k6 run learn.ts -e BACKEND_BASE_URL=# ### -e FRONTEND_BASE_URL=####
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ SCRIPTPATH=" $(
4+ cd -- " $( dirname " $0 " ) " > /dev/null 2>&1 || exit
5+ pwd -P
6+ ) "
7+
8+ ROOT_DIR=" $( dirname $SCRIPTPATH ) "
9+
10+ docker run --rm -ti \
11+ -v $ROOT_DIR /load_testing:/app \
12+ --add-host learn.odl.local:host-gateway \
13+ grafana/k6:master-with-browser \
14+ run /app/learn.ts " $@ "
You can’t perform that action at this time.
0 commit comments