Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add k6 Loadtest #3860

Merged
merged 3 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 0 additions & 133 deletions build/internal/cmd/loadtest/main.go

This file was deleted.

40 changes: 40 additions & 0 deletions build/load/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Load Testing

This is a load testing script for Flipt. It uses the [k6](https://k6.io/) tool to simulate load on the Flipt server.

## Prerequisites

- [k6](https://k6.io/)
- [Flipt](https://flipt.io/)

## Steps

1. Install k6
2. Install or build Flipt
3. Import data into Flipt
4. Run Flipt
5. Run the load test

### Import data into Flipt

```bash
flipt import import.yaml
```

### Run Flipt

```bash
flipt
```

### Run the load test

```bash
FLIPT_ADDR=http://localhost:8080 k6 run loadtest.js
```

To run with the k6 Web UI:

```bash
FLIPT_ADDR=http://localhost:8080 K6_WEB_DASHBOARD=true k6 run loadtest.js
```
Loading
Loading