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 to understand -c when I run locust with no-web mode? #965

Closed
qushengswaych opened this issue Feb 20, 2019 · 3 comments
Closed

How to understand -c when I run locust with no-web mode? #965

qushengswaych opened this issue Feb 20, 2019 · 3 comments

Comments

@qushengswaych
Copy link

qushengswaych commented Feb 20, 2019

Description of issue / feature request

When I run locust with no-web mode, there's a opt -c.The description of it is the number of concurrent Locust users.So when I run locust with command "locust -t 30s -c 80 -r 80 --no-web -f xx.py", what's the difference between running locust with "-c 100 -r100".I get the similar req/s and the tp75 and tp99 always increase 150ms or more.

Expected behavior

TBD

Actual behavior

TBD

Environment settings (for bug reports)

  • OS:Mac OS
  • Python verson:2.7.10
  • Locust version:0.9.0

Steps to reproduce (for bug reports)

TBD - example code appreciated

@cgoldberg
Copy link
Member

cgoldberg commented Feb 20, 2019

well..

-c 80 -r 80 will spawn 80 clients (users) at a rate of 80 per second. So, 1 second into your test, all 80 clients would be hatched and running.

-c 100 -r 100 will spawn 100 clients (users) at a rate of 100 per second. So 1 second into your test, all 100 clients would be hatched. and running.

As you can see... keeping -c and -r set to the same number isn't a very good use of hatch rate, since the hatch period will only last 1 second.

@cgoldberg
Copy link
Member

closing, since there is no bug/issue reported here.

@qushengswaych
Copy link
Author

qushengswaych commented Feb 21, 2019

@cgoldberg I got less requests and lower req/s when using -c 50 -r 10 than using-c 100 -r 10.So did this mean I use it in a wrong way?

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