Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pagopa-archive/k6-benchmark-playground
A k6 playground to benchmark, discover and observe how a technology performs under a given scenario
https://github.com/pagopa-archive/k6-benchmark-playground
Last synced: about 12 hours ago
JSON representation
A k6 playground to benchmark, discover and observe how a technology performs under a given scenario
- Host: GitHub
- URL: https://github.com/pagopa-archive/k6-benchmark-playground
- Owner: pagopa-archive
- Archived: true
- Created: 2023-03-14T09:55:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T13:36:16.000Z (almost 2 years ago)
- Last Synced: 2025-02-05T02:20:20.112Z (about 12 hours ago)
- Language: HCL
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k6 Benchmark Playground
We often have to make technology decisions on which tool and architecture to prefer in order to serve a given use case. This project aims to provide a pre-formed playground to quickly run k6 scripts.
It is based on [Grafana's k6](https://k6.io/).
----
## Usage
First, start `influxdb` and `grafana` in background:
```sh
docker-compose up -d influxdb grafana
```then run the k6 script defined among the use cases:
```sh
docker-compose run -e MY_ENV_VAR=my_value k6 run /use-cases/dummy-case.js
```Optionally, navigate `grafana`'s UI on http://localhost:3000 to fetch and visualize collected data.
## Folder structure
**use_cases**
k6 scripts that execute some tests against a specified target.**targets**
Everything is needed to setup and teardown a target application to perform tests against.