Skip to content

A way of load testing that uses faker and k6 to generate and load test your API.

Notifications You must be signed in to change notification settings

Cyrus-0101/k6-load-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k6 Load Testing (Stress, Spike, Load, Soak).

  • This script details a step by step load, stress and spike test. We use Webpack to bundle up our scripts and be able to add faker to our script to send data.

Installation:

Ensure you have k6, globally installed before running the project.

  • After installing k6 begin by running:
    npm i

Then run

    npm test

What's going on?

Grafana k6 - Is an open-source load testing tool that makes performance testing easy and productive for teams. Its free, developer-centric and extensible.

We use k6 with faker to generate fake data to post on the blockchain and use k6/http, to send http requests and add option to simulate virtual users and set duration limits for testing.

We send requests to our server through the stages where we define how many virtual users can send data and for how long.

The results are posted on the terminal, which include:

  • Data recieved by the Blockchain
  • Data Sent by the Blockchain
  • Virtual Users - VUs
  • HTTP metadata etc.

Although we can opt to use Cloud Monitoring, to store and compare all our results.

About

A way of load testing that uses faker and k6 to generate and load test your API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published