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

reqs/sec is much lower than expected #931

Closed
jcyrss opened this issue Dec 12, 2018 · 2 comments
Closed

reqs/sec is much lower than expected #931

jcyrss opened this issue Dec 12, 2018 · 2 comments

Comments

@jcyrss
Copy link

jcyrss commented Dec 12, 2018

My code is below, and my set is 100 Users\ 100 Hatch rate

class UserBehavior(TaskSet):   

    @task(1)
    def list_teacher(self):
        self.client.get("/api/mgr/sq_mgr/?action=list_teacher&pagenum=1&pagesize=100")

    @task(1)
    def list_course(self):
        self.client.get("/api/mgr/sq_mgr/?action=list_course&pagenum=1&pagesize=20")


class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait = 1000
    max_wait = 1000

The expected reqs/sec is like 100, but always I got 10 !!

image

My server handling is very simple and CPU load during testing is very low.

Why is that????

Env

  • OS: Windows 10
  • Python version: 3.6.2
  • Locust version: 0.9.0
@cgoldberg
Copy link
Member

not sure what is being asked or reported here.

@jcyrss
Copy link
Author

jcyrss commented Dec 13, 2018

With both min_wait/max_wait set to 1 second and 100 Users, should the reqs/sec be 100?
If so , why in my testing, it is 10 instead of 100?

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