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

How do you calculate requests? #532

Open
paul-uz opened this issue Oct 16, 2024 · 4 comments
Open

How do you calculate requests? #532

paul-uz opened this issue Oct 16, 2024 · 4 comments

Comments

@paul-uz
Copy link

paul-uz commented Oct 16, 2024

I see options for connections and duration, both of which are 10, giving approx 3k requests in total on my laptop.

How can i dial ths numbers in to give for example ~1mil requests over 1 minute?

@mcollina
Copy link
Owner

Try with -c 100 -p 10

@paul-uz
Copy link
Author

paul-uz commented Oct 16, 2024

what does the -p do exactly?

@paul-uz
Copy link
Author

paul-uz commented Oct 16, 2024

This gave me about 4k requests over 10s btw, bit shy of 1mil over 1 minute

@mcollina
Copy link
Owner

The readme contains all the options, what's not clear?

autocannon saturates all the connections it uses. If you want to generate a certain amount of load independently of the server responding, you need to use ab.

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