-
Notifications
You must be signed in to change notification settings - Fork 3k
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
locust.weight supported, just undocumented? #123
Comments
Yeah, it's supported and we should update the docs accordingly. show-task-ratio should be fixed as well. I think the reason that it's not documented is because we haven't used it much. |
Sure. I suspect it's not used that much in general, as this has been here for a while I guess. I only spotted it as I was refactoring inspectlocust a bit (to allow floats for task weights) |
There's some value to it. I've used it for a use-case similar to this: class WebUser(Locust):
weight = 10
....
class MobileUser(Locust):
weight = 1
.... |
Yeah, it definitely has value - I could find a use for this too (now that I know about it). It guess it just hasn't been widely used as it's not documented ;) Well, I couldn't find it at least. |
Seems like it works i.e. that the following does what you'd expect:
However, so far as I can tell:
locust -f blah.py ReallyUnlikelyLocust MuchMoreLikelyLocust --show-task-ratio[-json]
returns incorrect informationThe text was updated successfully, but these errors were encountered: