Code Monkey home page Code Monkey logo

base-performance-testing-gatling's Introduction

Performance testing using Gatling with Java and Scala

This project is an example of the different types of performance tests that are described in Performance testing summary using Gatling and Docker compose.

Table of contents

Get Started

Requirements

Configuration

Setup environment (start mockoon server) using docker compose:

docker compose --profile env up --detach

Run performance testing

Implementation of "Case 1: Load testing" using Java

Run

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

Result

Load testing result

Implementation of "Case 1: Load testing" using Scala

Run

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

Result

Load testing result

Implementation of "Case 2: Stress testing" using Java

Run

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

Result

Stress testing result

Implementation of "Case 2: Stress testing" using Scala

Run

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

Result

Stress testing result

Implementation of "Case 3: Soak testing" using Java

Run

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

Result

Soak testing result

Implementation of "Case 3: Soak testing" using Scala

Run

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

Result

Soak testing result

Implementation of "Case 4: Spike testing" using Java

Run

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

Result

Spike testing result

Implementation of "Case 4: Spike testing" using Scala

Run

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

Result

Spike testing result

Clean environment

docker compose --profile env --profile test down

License

MIT

base-performance-testing-gatling's People

Contributors

eccanto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.