stressor
Stress-test your web app.
Stressor is a tool, that runs a sequence of activities in one or more parallel sessions. The most common use case is to run a test script with HTTP commands against a web server, simulating a bunch of parallel user sessions. As a result we get metrics about reponse times, failures, resource usage, etc.
Stressor can be used for testing, benchmarking, load testing, or to generate test data. Stressor comes with prebuilt activities for HTTP-request and more, and can be extended by custom activity-plugins.
Test scripts can be defined as text files, using a special syntax, that is then
executed by the stressor command line tool.
Stressor is also an Open Source Python library that can be included into your
own projects. This allows to define test scenarios programmtically.
Quickstart
-
Install stressor (details)
-
Create a new scenario folder. For example:
$ stressor init ./scenario_1
or alternatively import an existing HAR file as a starting point (details):
$ stressor init ./scenario_1 --convert /path/to/output.har
-
Edit the scripts as needed (users.yaml, main_sequence.yaml, scenario.yaml) (details)
-
Run the script:
$ stressor run ./scenario_1/scenario.yaml
Use the
--monitoroption to view the progress in a separate window:$ stressor run ./scenario_1/scenario.yaml --monitor
Use the
--logargument to write output to a file or folder:$ stressor run ./scenario_1/scenario.yaml --no-color --log .
(Hit Ctrl+C to stop.)
-
Read The Docs for details.
Metadata
Release files for stressor 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stressor-0.6.0.tar.gz | 58.0 kB | Without provenance | Details for stressor-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stressor-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for stressor-0.6.0-py3-none-any.whl |
Total release size: 515.6 kB
Release files / stressor-0.6.0.tar.gz
| Download URL | stressor-0.6.0.tar.gz |
|---|---|
| Size | 58.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55a10edc41f5f3402af692a94453f8d51579ca5efa194ec2e246e090e0454b6e
|
|
BLAKE2b-256 checksum How to use checksums |
30f773a527c09ee5f6a870340e66640eaf48ee321e610cdb553ef33dbde99091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / stressor-0.6.0-py3-none-any.whl
| Download URL | stressor-0.6.0-py3-none-any.whl |
|---|---|
| Size | 457.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b18749af2678d587bffc19cd1ec569badd84a54bd6fa935e44c8fbf2ae76e81
|
|
BLAKE2b-256 checksum How to use checksums |
845f33a5c5818252250fdacaeafe77e551fa7b9a1b7dfa7852184741262cc324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for stressor 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.