---
title: "Automating performance tests"
description: "Supabase built its performance-testing pipeline while rewriting its WebSocket-based Realtime service, starting with manual k6 load generators on AWS VMs and adding Grafana/Prometheus to diagnose loader resource exhaustion."
url: "https://swe.quest/articles/automating-performance-tests-3c422bee8eb7f6b1"
canonical: "https://supabase.com/blog/automating-performance-tests"
source: "Supabase"
published: "2024-02-21"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["testing","performance","observability","infrastructure-as-code","ci-cd"]
---

# Automating performance tests

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2024-02-21, 7 min read, Case study. Original: [https://supabase.com/blog/automating-performance-tests](https://supabase.com/blog/automating-performance-tests)

## Summary

Supabase built its performance-testing pipeline while rewriting its WebSocket-based Realtime service, starting with manual k6 load generators on AWS VMs and adding Grafana/Prometheus to diagnose loader resource exhaustion. When load-test metric volume overwhelmed Prometheus's push endpoint, they added Telegraf as an intermediary buffer that also collects host metrics. Because k6 Cloud would have cost hundreds of thousands per year for their concurrency levels, they wrote a small Go app that runs Terraform and k6 scenarios, tears down infrastructure, tracks launch history and exposes an API for GitHub Actions. With it they have run tests of up to 1M concurrent virtual users for Supavisor and 200K for Realtime, and onboarded other services in hours to days.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md) (Infrastructure)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- load testing basics ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- WebSockets ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))
- Prometheus and Grafana

## Keywords

k6, Telegraf, Grafana, Prometheus, Terraform, Supabase Realtime, Supavisor, WebSocket

## Related posts

- [Continuous Load Testing](https://swe.quest/articles/continuous-load-testing-cb6889189cd6bc8f.md): Slack Engineering · 2022-04-29 · Medium · 13 min read · Testing, Performance engineering, Resilience, Kubernetes, Deployment
  Slack moved to running its Koi Pond load-testing clients continuously, 24/7, against an organization 4x the size of its largest customer.
- [Load Testing with Koi Pond](https://swe.quest/articles/load-testing-with-koi-pond-0d1865c57c75034d.md): Slack Engineering · 2021-04-23 · Medium · 14 min read · Testing, Performance engineering, Scaling, Real-time systems, Capacity planning
  Koi Pond is Slack's load-testing tool that boots lightweight simulated clients (koi), grouped into schools of up to 5,000, which open real websocket connections and call Web APIs.
- [Building an End to End load test automation system on top of Kubernetes](https://swe.quest/articles/building-an-end-to-end-load-test-automation-system-on-top-of-kubernetes-7beb3707dbd053ca.md): Zalando Engineering · 2021-03-01 · Medium · 9 min read · Testing, Performance engineering, Kubernetes, Payments & fintech, Capacity planning
  Zalando's payments team built an automated end-to-end load testing system in its Kubernetes test cluster.
- [Modular regression testing framework built on AWS for large-scale systems](https://swe.quest/articles/modular-regression-testing-framework-built-on-aws-for-large-scale-systems-5423a76854a0e19b.md): AWS Architecture Blog · 2026-11-12 · Medium · 14 min read · Testing, Deployment, CI/CD, Serverless, Cloud platforms
  A traffic-replay regression testing framework built on AWS captures production requests and responses, replays a sample against new code in pre-production, and gates deployments on a CloudWatch alarm over the fraction of matching outputs (typically 99.9%).
- [Own Your Observability: Supabase Metrics API](https://swe.quest/articles/own-your-observability-supabase-metrics-api-f7b0d82ff7186f0c.md): Supabase · 2025-12-16 · Medium · 4 min read · Observability, PostgreSQL
  Supabase's Metrics API exposes roughly 200 Postgres health and performance metrics per project in Prometheus exposition format at a privileged endpoint authenticated with service-role Basic Auth, refreshed every minute.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
