Skip to main content

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

Get It Now

Run pip install load_test

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


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.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

load_test-0.0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file load_test-0.0.3.tar.gz.

File metadata

  • Download URL: load_test-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for load_test-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cae222abeb3738b82d982d4fece1b6741670a46885898e7238000d9a9df2b65c
MD5 b88e70b415a4a1a1c77c9f1c86e02202
BLAKE2b-256 67428538873d8d5e0ff31964f318b6ac2ba574764492237430c79cba573a2803

See more details on using hashes here.

File details

Details for the file load_test-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: load_test-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for load_test-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 735eb0e6579058d00082b9fea8177ef6b9604f23d6f6cad28bf527389c3fb1fb
MD5 5ff22db354565a6b796be692af4031fa
BLAKE2b-256 203a509b11dd26ab7db43b3550f7b5b1311ed4919b6c66637ab3f6578637cb20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page