Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Nakabonne/ali: Generate HTTP load and plot the results in real-time (github.com/nakabonne)
82 points by vinnyglennon on Oct 5, 2020 | hide | past | favorite | 21 comments


What's some alternatives to this, that also has "scenarios" or similar so you could simulate real user flows, but a lot of them? Should be self-hosted.

What I've found so far:

- jmeter - classic, true and tested, works well but config format is a hassle to deal with

- gatling - works well in general, but the reporting in the open source version is very basic, probably because they have "enterprise" features around reporting (that starts at $400/month)


> jmeter - classic, true and tested, works well but config format is a hassle to deal with

You can use Taurus [1] to write scenarios in yaml files instead of using JMeter's JMX.

[1] https://gettaurus.org/kb/Basic1/


That's neat, thanks for the suggesting! I've used https://github.com/flood-io/ruby-jmeter that is similar to Taurus, ruby DSL for generating the JMX. Only had issues with some things not being supported but was easy to extend to support those features. Made a short presentation about ruby-jmeter a while ago (6 years): https://slides.com/victorbjelkholm-old/jmeter-ruby-do-perfor...



There's also ab (Apache Benchmark) which is super simple and can be all you need sometimes.


Ab support only http 1.0 requests, I recommend wrk instead: https://github.com/wg/wrk


And is included in MacOS (as I discovered after trying to install it for 10min).

Simple example (-c is concurrency, -n is total number of requests to make, -H for headers):

    ab -c 20 -n 50000 'https://someurl.com/someendpoint'


drill is relatively new but shows promise:

https://github.com/fcsonline/drill


K6 is my usual go-to, since it can import Postman request files (which makes it easier to simulate more complex requests with file uploads and such), and is highly configurable.

https://k6.io/


+1 for Gatling. I agree with the reporting part. Although the basic version is good enough for the 80% use case


locust maybe?


Tsung


Similar tool I recommend https://k6.io/docs/


Looks real nice! Unfortunately doesn't have graphs like "ali" or other popular load testing tools, and the cloud version is very expensive (starts at $74/month) if you just want some nice visualization of your results.


You can use it with influxdb and grafana which gives you 5seconds delay - almost real time I say.


k6 can be used together with Grafana[1] so you can get pretty charts for free :-)

[1] https://k6.io/blog/k6-loves-grafana


As a lover of Grafana, I love this! Thanks, didn't know. I'll definitely give k6 a try!


I tried the cloud version of this out on someone's recommendation last week, and was impressed. It gets expensive quite fast looking at the price plans though. The k6 open source library behind it seems cool too.


I used in the past locust.io - has ui and supports scenarios etc.


Thank you! I actually really need this right now.


Wow that's really nice! Thanks for sharing!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: