What's everyone favorite solution for load testing...
# server
m
What's everyone favorite solution for load testing a Kotlin server?
πŸ‘€ 2
h
Why would it matter that it's a Kotlin server?
☝️ 3
c
I have used
Copy code
while true; do
    curl …
done
before, but I assume you're searching for something a bit more advanced? πŸ˜…
nod 1
m
Why would it matter that it's a Kotlin server?
So that I don't have to learn another language to setup my test suite
I see a bunch of python and go scripts out there which I'd like to avoid
h
But then the question should be: "What's everyone's favorite Kotlin solution for load testing a server?"
βœ… 3
m
True
But is there one?
s
Gatling is okay in Kotlin. But to be honest, load testing tools have such specific DSLs that you'll feel like you're learning a new language anyway.
m
Yea, I've taken a quick look at both Gatling and JMeter and it seems like a lot to take in
s
I'd just pick a tool you like and not worry too much about what language it's in. I've used k6 for a small project, and Gatling + Kotlin for a bigger one. I wish I'd just stuck to k6 for both.
πŸ‘ 5
l
I have used gatling for complicated setup or just ktor + coroutine for simple stuff
πŸ‘ 1
h
k6 is my favorite too, but it's JS – not Kotlin
πŸ™ 1
πŸ‘ 3
πŸ‘πŸ» 1
m
Will take a look at k6, thanks!
In case anyone is interested, I found this page to be a pretty good presentation of the various tools: https://grafana.com/blog/2020/03/03/open-source-load-testing-tool-review/
d
if you want to easily test the server limits -> https://github.com/tsenart/vegeta
πŸ™ 1
I'd pick gatling over jmeter but they don't get anywhere near close in the perf of
vegeta
πŸ‘ 1
t
Another vote for k6 here!
πŸ‘ 1
m
k2, k6, ... it all makes sense ⛰️ !
l
I have used Locust before which is a python based load testing tool - https://locust.io/ The nice thing about Locust is that it allows you to create workers in a range of supported languages and java/kotlin is one of those languages - https://github.com/myzhan/locust4j Good article here on integrating the two and creating tests in both Java and Kotlin - https://www.blazemeter.com/blog/locust-performance-testing
πŸ™ 1