Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HTTP frameworks #7

Open
RafaelGSS opened this issue Mar 8, 2024 · 3 comments
Open

Support HTTP frameworks #7

RafaelGSS opened this issue Mar 8, 2024 · 3 comments
Assignees

Comments

@RafaelGSS
Copy link
Member

As I wrote in 970d2d7. Benchmarking HTTP is more complicated than just running autocannon. I believe we should create an option for this script such as:

$ node index.js HTTP

to focus only on the HTTP benchmark, then use a different algorithm to collect reliable results.

@RafaelGSS RafaelGSS self-assigned this Mar 11, 2024
@italojs
Copy link
Contributor

italojs commented May 15, 2024

working in a simple poc with k6
there i'm planning to create a pipeline with many kinds of load tests and using containers to be able to set a resource limitation for the server/load-tester

@italojs
Copy link
Contributor

italojs commented May 20, 2024

I did a POC where we can run many kind of load tests
there we can specify custom metrics, checks and create different scenarios to be executed in sequence, for example: start with an smoke test to make the runtime(v8) apply compiler optimizations(JIT) then we start to do a load test, then a stress test... until arrives at breakpoint test

may we can do it using autocannon but i think we will have a little of work there

PTAL at test.js file, I commented all lines to maintain the POC pretty explainable

i did an separated repo to open it for discussion, changes and etc, so when approved i can plug it into this repository

repository here

@RafaelGSS
Copy link
Member Author

Can you paste the output example here?

I'm not sure that using docker is a good option for this project as we'd like to be cross-platform and plug & play. IIRC docker is a mess on OSX and Windows.

However, we could make it optional behind a flag (--http), we just need to make sure the results are consistent between runs, so if you want to make a PR we could measure it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants