This project is an example of the different types of performance tests that are described in Performance testing summary using Gatling and Docker compose.
- Get started
- Requirements
- Configuration
- Run performance testing
- Implementation of "Case 1: Load testing" using Java
- Implementation of "Case 1: Load testing" using Scala
- Implementation of "case 2: Stress testing" using Java
- Implementation of "case 2: Stress testing" using Scala
- Implementation of "Case 3: Soak testing" using Java
- Implementation of "Case 3: Soak testing" using Scala
- Implementation of "Case 4: Spike testing" using Java
- Implementation of "Case 4: Spike testing" using Scala
- Clean environment
- License
Setup environment (start mockoon
server) using docker compose:
docker compose --profile env up --detach
Set GATLING_SIMULATION=load/java
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1load\/java/' .env
Run load testing with 10
runners:
docker compose --profile test up --scale worker=10
Set GATLING_SIMULATION=load/scala
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1load\/scala/' .env
Run load testing with 10
runners:
docker compose --profile test up --scale worker=10
Set GATLING_SIMULATION=stress/java
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1stress\/java/' .env
Run stress testing with 10
runners:
docker compose --profile test up --scale worker=10
Set GATLING_SIMULATION=stress/scala
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1stress\/scala/' .env
Run stress testing with 10
runners:
docker compose --profile test up --scale worker=10
Set GATLING_SIMULATION=soak/java
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1soak\/java/' .env
Run soak testing with 10
runners:
docker compose --profile test up --scale worker=10
Set GATLING_SIMULATION=soak/scala
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1soak\/scala/' .env
Run soak testing with 10
runners:
docker compose --profile test up --scale worker=10
Set GATLING_SIMULATION=spike/java
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1spike\/java/' .env
Run spike testing with 10
runners:
docker compose --profile test up --scale worker=10
Set GATLING_SIMULATION=spike/scala
in .env
file:
sed -i 's/\(GATLING_SIMULATION=\).\+/\1spike\/scala/' .env
Run spike testing with 10
runners:
docker compose --profile test up --scale worker=10
docker compose --profile env --profile test down