Systems | Development | Analytics | API | Testing

k6

Week of Testing Day 4: Streaming results to the cloud and stepped load profiles on k6

Nicole discusses how to stream the results of load tests run locally to the k6 Cloud and how to recreate a stepped load profile using k6, compared to a load testing tool like JMeter. Note from Nicole: I realized after this video that I was mixing `let` and `var` in this video. They have different implications on scope, and I would recommend you use `let` or `const` in your own scripts. Also, there are other ways to achieve the stepped load profile, but this is one way to do it.

Performance testing gRPC services

v0.29.0 contained a lot of interesting features. Have a look at the release notes for details! gRPC is a light-weight open-source RPC framework. It was originally developed by Google, with 1.0 being released in August 2016. Since then, it's gained a lot of attention as well as a wide adoption. In comparison to JSON, which is transmitted as human-readable text, gRPC is binary, making it both faster to transmit and more compact.

Load Testing a Caddy Web Server on a GCP F1-Micro instance Using K6

I used the K6 load testing framework to benchmark the Compute Engine f1-micro and Caddy web server hosting this site. With CloudFlare caching turned off, the server was able to serve an onslaught 800 virtual users continuously reloading the page (while maintaining a median request duration of <400ms), but started dropping requests when increasing the load further. This is fine.

How to Load Test OAuth secured APIs with k6?

The outline of this article is as follows: Most systems are designed to treat users differently based on their identity. Therefore, users are authenticated via various mechanisms and it's often equally important to test the performance of anonymous and authenticated endpoints. One of the most widespread authentication standards used by today's applications is OAuth. In OAuth, we use a trusted third party to verify the identity of the user.