GithubHelp home page GithubHelp logo

Comments (5)

LionsAd avatar LionsAd commented on August 27, 2024

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.

jeremyandrews avatar jeremyandrews commented on August 27, 2024

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.

LionsAd avatar LionsAd commented on August 27, 2024

That's a hard question.

Does Locust have --run-time?

from goose.

jeremyandrews avatar jeremyandrews commented on August 27, 2024

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.

LionsAd avatar LionsAd commented on August 27, 2024

Yeah - probably cool to also allow specifying a —spawn-runtime.

from goose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.