Coder Social home page Coder Social logo

k6-talk's Introduction

k6-talk

What is the goal of this repo?

This repo contains slides and projects related to a talk on Grafana k6 @gsvolt gave at Canton Linux Enthusiasts on 2/26/2022. The goal is to get a basic level understanding of k6 concepts and be able to write load tests.

Abstract

From humble beginnings in 2008 to today, the k6 dev team has managed to build a tool using Go & Javascript that allows developers and devops practitioners to successfully load test their apis.

In this talk, we'll learn about k6 and how it works. Next, we'll write a simple web api and attempt to load test it.

What can I find in this repo?

You can find the following folders in this repo:

  • slides: Contains slides on the topic of Grafana k6 covering important details of the tool
  • api: Contains a simple golang based web api used by the test project
  • test: Contains k6 based tests that show how to load test the api

Getting Started

Assumptions

At the time of latest commit, the k6 and docker were installed on a Debian 11 system. If you're on a different platform, please follow instructions for your platform to install k6 and docker.

How to run the api?

In one terminal, run the api with:

cd api
make run

How to run the load test(s)?

In another terminal, run a load test with:

cd test
make NN_test.js # where NN is the test number

License

Since this talk is based on k6, this repo uses GNU AGPL.

k6-talk's People

Contributors

gsvolt avatar

Stargazers

Butch Mayhew avatar Chris Kempster avatar Cesar tapasco avatar José Wenceslao Castillo avatar Chris Kempster avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.