PPSS
wrk2
Our great sponsors
PPSS | wrk2 | |
---|---|---|
2 | 13 | |
104 | 4,155 | |
- | - | |
10.0 | 0.0 | |
almost 5 years ago | about 2 months ago | |
Shell | C | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PPSS
- GNU Parallel, where have you been all my life?
-
Bash functions are better than I thought
At one time, I did learn myself to write shell scripts. I even wrote this 3Kl line monstrosity [0]
However, I would strongly advice to master a proper programming language. I respect the article and the efforts of the author, but I feel that it is the past.
I mastered Python a bit and the ability to just use things like dictionaries, proper parsing libraries and such, instead of kilometers of fragile pipes, it is so much better.
I understand something like Python may feel total overkill, but that 10 line shell script suddenly needs quite a bit of error handling and some other features and before you know it, you wish you started out with python or something similar.
[0]: https://github.com/louwrentius/ppss
wrk2
-
GNU Parallel, where have you been all my life?
> This runs a benchmark for 30 seconds, using 2 threads, keeping 100 HTTP connections open, and a constant throughput of 2000 requests per second (total, across all connections combined).
Some distros include `ab`[2] which is also good, but wrk2 improves on it (and on wrk version 1) in multiple ways, so that's what I use myself.
[1] https://github.com/giltene/wrk2
[2] https://httpd.apache.org/docs/2.2/programs/ab.html
-
Ask HN: What do you use to stress test your web application?
I've had my eyes on wrk2 [1]
1. https://github.com/giltene/wrk2
But I am curious, what does HN use? Any tips?
-
Running a Billion Workflows a month with Netflix Conductor
We used wrk2, a fantastic tool to generate stable load on the server. Wrk2 improves on wrk and adds the ability to generate sustained load at a specific rate (-R parameter).
-
How does one answer performance related questions such as these for a web API?
I use tools like vegeta and wrk2 to answer those questions.
-
Your load generator is probably lying to you
Needs (2015).
I loved the talks from Gil Tene.
I always reach for his fork of wrk whenever I need to test throughput:
https://github.com/giltene/wrk2
-
what is faster the template engine tera or PHP. is there any template engines for rust faster than PHP
That's why a lot of people just use something like wrk or wrk2 (highly recommended to run it on a separate machine) and benchmark the ability to serve actual requests.
-
PHP preload VS running as a daemon (benchmarks)
To get the most out of preload, I preloaded all files that the experimental endpoint needs to include. As a benchmarking tool, I use wrk2 — a more advanced Apache Benchmark analog — to keep it simple and provide more flexibility to generate loads similar to a real-life one.
-
Ask HN: Do you load test your applications? If so, how?
i use https://github.com/giltene/wrk2 pretty regularly.
it has decent lua hooks to customize behavior but i use it in the dumbest way possible to hammer a server at a fixed rate with the same payload over and over.
i run it by hand after a big change to the server to make sure nothing obviously regressed. i used to run it nightly in a jenkins job but 99% of the time no one looked at results. it was nice to see if assumptions on load a single node could handle didn't hold anymore.
- Wrk2: A constant throughput, correct latency recording variant of wrk
-
3 Benchmarking/load testing tools for different use cases
I use wrk2 because it overcomes coordinated omission.
What are some alternatives?
hasura-ci-cd-action
wrk - Modern HTTP benchmarking tool
pash - PaSh: Light-touch Data-Parallel Shell Processing
siege - Siege is an http load tester and benchmarking utility
docker-flask-example - A production ready example Flask app that's using Docker and Docker Compose.
loadtest - Runs a load test on the selected URL. Fast and easy to use. Can be integrated in your own workflow using the API.
oh - A new Unix shell.
artillery - Load testing at cloud-scale. Serverless & distributed out-of-the-box. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module. Never fail to scale with Artillery!
xe - simple xargs and apply replacement
Hey - HTTP load generator, ApacheBench (ab) replacement
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
Vegeta - HTTP load testing tool and library. It's over 9000!