Load testing tool
Project description
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()
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
loadtest-0.0.2.tar.gz
(2.0 kB
view hashes)