Performance testing with OpenAPI Spec and k6

Click to see for talk abstract

Performance testing is often overlooked in API development, not because it isn’t important, but because keeping tests up to date as APIs evolve is a challenge. Many teams maintain OpenAPI specs for documentation, but writing and maintaining k6 performance tests manually can be tedious and error-prone.

To bridge this gap, we built openapi-to-k6, a CLI tool that converts OpenAPI specs into TypeScript clients, making it easy to generate and execute k6 performance tests. With this approach, developers can:

  • Leverage TypeScript for Strong Typing & Autocompletion – making test scripts more maintainable and easier to work with.
  • Automatically Generate API Clients – eliminating the need to manually write test logic for every API change.
  • Ensure Performance Tests Stay Up to Date – as APIs evolve, test scripts can be regenerated with minimal effort.
  • In this session, we’ll walk through how openapi-to-k6 works, share the real-world challenges we faced while building it, and demonstrate how JavaScript/TypeScript developers can integrate it into their workflows. Whether you're a backend engineer, tester, or DevOps professional, this talk will show you how to harness OpenAPI and TypeScript for automated, scalable performance testing.

    Grafana & Friends Meetup, London, UK

  • Slides
  • Archived Schedule
  • ← Go Back