The Best Performance And Load Testing Tool? k6 By Grafana Labs

preview_player
Показать описание
k6 is an open-source load and performance testing tool. It competes with tolls like JMeter and Gatling and is now part of the Grafana Labs suite of tools.

#k6 #GrafanaLabs #LoadTesting #PerformanceTesting

▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬

▬▬▬▬▬▬ 💰 Sponsoships 💰 ▬▬▬▬▬▬

▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬

▬▬▬▬▬▬ 🚀 Courses, books, and podcasts 🚀 ▬▬▬▬▬▬

▬▬▬▬▬▬ ⏱ Timecodes ⏱ ▬▬▬▬▬▬
00:00 Introduction
01:59 What is Load, Stress, And Performance Testing
03:17 k6 Syntax
05:51 Run Load Tests With k6
10:44 k6 Performance
13:49 k6 Options
15:27 k6 Stages
21:30 k6 Thresholds In CI/CD Pipelines
25:13 k6 Cloud
28:59 Export And Monitor k6 Results
30:22 k6 Pricing
31:48 k6 Pros And Cons
Рекомендации по теме
Комментарии
Автор

Which tool are you using for load testing (if any)?

IMPORTANT: For reasons I do not comprehend (and Google support could not figure out), YouTube tends to delete comments that contain links. Please do not use them in your comments.

DevOpsToolkit
Автор

Wow, this was such a great introduction to k6! This was shared internally and everyone on the team loves it! Thank you for appreciating this tool we're building. :) - Nicole

kio
Автор

I have been using k6 since last year, it really nails the performance testing with its simplicity, extensibility and great performance. Love it!

wushuartgaro
Автор

I used a lot of test tool jmeter, apache benchmark, superbenchmarker etc . but it is different this is insane thanks

sameterayerdem
Автор

Already noticed the project looking through Grafana products, glad to have a video about it for the future!

mikkel
Автор

There is a major con of k6 not mentioned here, which is data uploads. Current k6 API doesn't support loading file contents to memory shared between VUs. Hence every VU needs to load data into memory on its own, resulting in skyrocketing memory consumption when testing anything related to file uploads at a reasonable scale.

zgoor
Автор

Gatling. I reuse the API tests written in Karate. Moreover I love the feature of defining the way traffic builds up (arrival rate, sustain, leave rate). Karate DSL is way simpler for testers in my team hence Gatling was better positioned.

saigajester
Автор

Looking at the number of subscribers to this channel, we can say that there are not enough good DevOps people in the world. only 36.5k

JaydeepDave
Автор

Great info thank you. I’ve been looking for alternatives to jmeter, this seems like a good option.

viniciosantos
Автор

Thanks for the great tutorial. The best I found on YouTube.

Quick question: I started learning the load testing using JS & K6 recently. I did the setup and running the tests in docker container by adding the Grafana & Influx DB dependencies in docker-compose file. Is there any limit for VU's in this case?

rajkumarchintakayala
Автор

(1) You look & sound more positive that's good :-) (2) It looks k6 docker image is still under loadimpact/k6, not under grafana repo. (3) Cloud saas option is expensive imho for a developer use.

fenarRH
Автор

Out of curiosity. One of the user stories we have is to have a secondary site that will show the status of clusters to customers. We want to also offer an additional monitoring notification process for each customer's site, so if anything happens, we can notify them before they find out from their own customers, that there is an issue (and we also know about the issue too and are working on it or if the IaaS provider is at fault). Could a self-hosted k6 cover this use case, i.e. heartbeating server-side web apps (something like an automated 10 sec interval of a 1 vus call to a special health check URL for different domains)? My thinking, after watching this great review, is also offering an expanded service to our customers, so they can also load test their sites/ our system too (only for a limited time, of course). Basically the idea would be, 1. to show customer what they use is working properly 2. if it isn't working, we'll let them know before their customers will. 3. instill trust that we have their backs covered even when they get blasted with requests = success!!

scottamolinari
Автор

Good one :) Your channel looks great. Please make a video on kpt.

phanitejamarupaka
Автор

What would you use for acceptance tests?

minimalistdev
Автор

Hey, thanks for the video. This hidden tranformation from JS to Go is bothering me. What if you import some library in JS and then it would be a problem with this transformation to Go? Is it possible to use Go directly?

nnutipa
Автор

Have you refreshed your k6 token? It was shared in the video😳

DaniilBubnov
Автор

Good one. Get some sleep Victor ;) more than a second

szymapans
Автор

As far as I know K6 is using a non-blocking IO approach to handle network traffic and connections which does not require 1 thread per 1 VU and that's why it's so CPU and memory efficient. Unlike jMeter which uses 1 thread per 1 VU which consumes a lot of resources.

One thing that was really not intuitive for me is that you need to tag explicitly every request otherwise you won't be able to distinguish which type of request is slow and which is fast - they'll all go in the same bucket. Because if there is a problem somewhere it's probably either on home page or article page or something and you need to track it down. While there is load of fine-grain data which is not much useful. For example the TLS handshake time - ok, what I'm going to do with this, it comes from the server, not my app...

But in general K6 is really great and useful tool.

IvanVasilev-bpez
Автор

I like "You should be ashamed" .. Haha

kumarsaheb
Автор

K6 has the weird AGPL v3 licence which is "network leftover" licence which is why most of us avoid it. Better trust Apache 2 and MIT licensed tools

swarajray