Abstraction for load testing
Project description
load-test
Quick Start
Define by implementing TestBase
, run with Runner
import load_test
class MyTest(load_test.TestBase):
def _run_task(self):
requests.get("https://google.com")
def main():
load_test.Runner([MyTest]).run()
See examples
How It Works
Preconfigured amount of processes will run a test case over and over again until timeout. You can send more than one test case and then after each test finishes, it will continue to the next one (after some delay).
Each process gathers statistics, when all tests finish the main process will create a single result file.
Runner Options
Option | Description | Default |
---|---|---|
processes |
How many processes will run the test case in parallel | 1 |
duration |
How many seconds each process will run the test case over and over again | 3 |
results_dir |
The directory of the final results, the filename is the timestamp of the run | "results" |
runs |
The limit amount for each process to run the test definition (None for no limit) |
None |
delay |
The delay in seconds between each test case (None for no delay) |
None |
logger |
Logger for general log messages (None for no logger) |
None |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
load_test-0.0.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for load_test-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6c6c14452a3b32e5233fad444fd9ad7c6abae224c0bfaa7fa896f96e2652bbf |
|
MD5 | ed702a39edd8b8d428ddd179dd7a1d45 |
|
BLAKE2b-256 | 2d8a2cba9d5a8f578621c4d53af2133ab2611ef5cb691c1adf7381cf780b7381 |