Skip to content

ufuk/load-test-demos

Repository files navigation

load-test-demos

Install k6 before run tests:

brew install k6

Run load test while monitoring memory usage:

./run-load-test.sh -p <process_id> -s <k6_script_file_name> -c <concurrent_user_count> -t <total_seconds>

# For example:
# ./run_load_test.sh -p 46852 -s k6-script-demo-sum-endpoint.js -c 100 -t 30

To monitor a process' memory usage, you can run process_memory_stats.sh individually:

./process_memory_stats.sh -p <process_id> -t <total_seconds>

# For example:
# ./process_memory_stats.sh -p 46852 -t 30

To start a k6 load test script with a certain amount of concurrent users for a few seconds individually:

k6 run --vus <concurrent_user_count> --duration <total_seconds>s <k6_script_file_name>

# For example:
# k6 run --vus 100 --duration 30s k6-script-demo-sum-endpoint.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published