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

RPS always lower than User counts #997

Closed
MannyWeirdo opened this issue Apr 10, 2019 · 1 comment
Closed

RPS always lower than User counts #997

MannyWeirdo opened this issue Apr 10, 2019 · 1 comment

Comments

@MannyWeirdo
Copy link

MannyWeirdo commented Apr 10, 2019

Description of issue

After tried both HttpLocust & FastHttpLocust, i found in my every test the RPS always lower than Number of simulated users.
I tried on a CPU:8 Mem:16G mac book pro and a CPU:8 Mem:16G linux both without open files or tcp connection limitation.

Expected behavior

�When i use Wrk or Jmeter request the same Url with same number of simulated users, it can reach about 20000/s QPS.

Actual behavior

TBD

Environment settings

  • OS: MacBook pro Mojave 10.14.4
  • Python version: 3.7
  • Locust version: Locust 0.8.1 (installed geventhttpclient branch)

Steps to reproduce (for bug reports)

And here is my code:

from locust import HttpLocust, TaskSet, task
from locust.contrib.fasthttp import FastHttpLocust

class UserBehavior(TaskSet):

@task
def index(self):
    self.client.get('/')

class WebsiteUser(FastHttpLocust):
task_set = UserBehavior
host = "http://xxx.xx.xx.xx:xxxx"

@MannyWeirdo MannyWeirdo changed the title RPS always lower than Users counts RPS always lower than User counts Apr 10, 2019
@cgoldberg
Copy link
Member

from the docs:
"a locust will always wait 1 second between each task if min_wait and max_wait are not declared"
https://docs.locust.io/en/stable/writing-a-locustfile.html#the-min-wait-and-max-wait-attributes

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