Load Tests for Phrag
Tests are performed with k6.
Run each script manually:
k6 run path/to/script.js
Run incremental attempts:
./load_test_query.sh [FILENAME or "all"] [LIMIT] [TARGET VU]
-
4
stages will be attempted with100
VU (virtual user) increase from a start VU target specified. -
all
can be specified as the first argument to test a series of setups.run_tests
function inload_test_query.sh
should be edited to specify the list of tests in this case. -
Results of these tests will be generated under
tests/[TIMESTAMP]/[FILENAME].json
by default.
BASE_URL
: Required. Base URL of a target service.ITEM_LIMIT
: Optional. Defaults to100
.TARGET_VU
: Optional. Defaults to100
.RESULT_FILE_PATH
: Optional. Defaults toresults/[FILENAME].json
.RESULT_FILE_NAME
: Optional. Defaults to[FILENAME].json
.
Results are summarized at performance page of Phrag's documentation.