simonberner / k6-starter

Performance Testing with k6

Home Page:https://github.com/grafana/k6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance Testing with k6 - A Starter Project

This is a simple starter project which can be cloned to start performance testing with k6. It is currently based on k6 v0.52.0.

Setup

  • Install node.js on the machine -> see here
  • Install k6 on the machine -> see here
  • Clone this repo

How to run

  1. Build the test.ts with: npm run build
  2. Run the protocol test with: npm run testp
  3. Run the browser test with: npm run testb

Current issues ⚠️

Check the issues page to get an overview over the open issues I am currently struggling with, or are in the backlog for this project.

Test APIs

Testing Essentials

Test Types

Test Levels

Hybrid Testing

As browser based testing with a lot of virtual users is resource-intensive, it may make sense to combine testing on the protocol (http/backend) level and on the browser (frontend) and go with a hybrid approach. Here is an example how this can be achieved.

Resources

About

Performance Testing with k6

https://github.com/grafana/k6


Languages

Language:TypeScript 100.0%