Stress_test.py is an advanced HTTP load and stress testing tool designed to help developers assess the capacity of their websites, APIs, or servers. With no dependencies and the ability to run anywhere Python 3.8+ is supported, it provides detailed reports on latency, throughput, and error rates, enabling better performance management.
stress_test.py is an advanced and dependency-free HTTP load and stress testing tool written in Python, designed specifically for developers and system administrators who need to assess the performance limits of their websites, APIs, or servers. By using the Python standard library (compatible with Python 3.8+), this tool enables users to conduct thorough capacity tests without the need for additional installations. It is compatible with macOS, Linux, and Chromebook environments.
The tool executes stress tests by sending HTTP requests to any server specified in the user-defined allowlist.txt. The following operational modes are available:
Performing a basic stress test is straightforward. Below is an example sequence to get started:
allowlist.txt.
echo "example.com" >> allowlist.txt
python3 stress_test.py https://example.com/ --i-own-this
python3 stress_test.py https://example.com/ --i-own-this --profile heavy --processes 8 --pipeline 16 --html report.html
Please ensure that testing is conducted only on servers owned or permitted to be tested. It is crucial to respect the legality and ethics of load testing — unauthorized testing can lead to severe legal consequences.
Primarily intended for:
For more detailed options and advanced setups, consult the full option reference and built-in profiles outlined in the README.
No comments yet.
Sign in to be the first to comment.