Skip to content

Load testing library with some cool features onboard!

License

Notifications You must be signed in to change notification settings

geowatson/loadtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loadtest

Load tester and benchmark tool for Python programmers.

Installation:

pip install loadtest

Basic usage

def request_func():
    import requests
    response = requests.get("https://jsonplaceholder.typicode.com/todos/1")

    if response.status_code != 200:
        print(response.status_code)
    else:
        sample = {
          "userId": 1,
          "id": 1,
          "title": "delectus aut autem",
          "completed": False
        }
        if response.json() != sample:
            print(response.json())
    return response

from loadtest import LoadTester
load_tester = LoadTester(n_jobs=10, worker=request_func, count=100)
load_tester.start()

About

Load testing library with some cool features onboard!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages