Comments (5)
I think it should be default (can be follow up):
Maybe even say something like:
[Statistics]
All users hatched, resetting statistics (disable with —no-reset-stats)
——————
Reason for default: GUI in locust does it by default or at least IIRC there is a very prominent checkbox and in my career I always used the reset as it helped distinguish ramp up from sustained load.
In most cases warmup screws with max() and avg() statistics.
If we output all statistics and give easy feedback how to disable it, I don’t see why we should not have reset stats as default.
from goose.
When --reset-stats
is not enabled (the current default), the load test stops itself when run_time
is hit, inclusive of the time it takes to spawn users. So, if you set --users 10 --run-time 1m
the total run-time is 60 seconds, which includes 10 seconds of run-time. If you set --users 10 --run-time 5s
the total run-time is 5 seconds, and we only launch 5 users.
A couple questions:
- should run-time include the time it takes to spawn users?
- does the answer change depending on if
--reset-stats
is enabled or disabled? - also consider a more extreme example,
--users 1000 --run-time 1m
, which will take over 15 minutes to spawn all users -- currently we'd end the test after 1 minute, but without--reset-stats
(or with my coming pr with--no-reset-stats
) do we exit after 1 minute or after 16 minutes?
from goose.
That's a hard question.
Does Locust have --run-time?
from goose.
Yes:
https://docs.locust.io/en/stable/config-options.html
It seems they start counting from the start of the test, not after users are spawned:
https://github.com/locustio/locust/blob/629988b36c5ddf4a201168410c594f7539b38d9f/locust/main.py#L227
In our case, I assume we'd reset the timer when all user's are spawned if --reset-stats
is enabled, as we want stats for that much time.
from goose.
Yeah - probably cool to also allow specifying a —spawn-runtime.
from goose.
Related Issues (20)
- difficult to map users to scenarios, and requests to transactions
- Potential segfault in the time crate
- Non friendly for newcomers HOT 2
- panic: assertion failed: self.is_char_boundary(new_len) when transaction!(xx).set_name("一二三四五六七") HOT 2
- User Context HOT 3
- Something fishy about cookies managment ... HOT 2
- compile on windows failed HOT 2
- Is it able to make gaggle support html report? HOT 1
- Goose hangs in the exiting phase HOT 4
- Integrate https://pola.rs/ HOT 1
- Duration formatting rounds up to 1 ms HOT 4
- support server-sent events
- Time for a new release ? HOT 2
- Time to first byte? HOT 3
- Programatically accessing the HTML Report HOT 2
- Caching auth between users HOT 5
- how to log response body HOT 4
- Markdown report HOT 1
- Export report as JSON HOT 1
- `-dev` version causes issues with patching HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goose.