Skip to content

Marat1234qwer/Load-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Project Description: Asynchronous HTTP Client for Load Testing

This Python script is an asynchronous HTTP client designed for load testing web servers by sending multiple parallel requests.

Key Features:

  • Uses asynchronous requests via the aiohttp library
  • Supports up to 1000 concurrent tasks (configurable)
  • Automatically restarts on errors
  • Logs errors to log.txt

Configuration:

  1. Replace url = 'https://example.com' with your target server URL
  2. Adjust the number of concurrent tasks by modifying range(1000) in the main() function

Features:

  • Infinite request loop
  • Error handling and logging with timestamps
  • 3-second delay after errors before restarting

Requirements:

  • Python 3.7+
  • Dependencies: aiohttp

Install Dependencies:

pip install aiohttp  

Usage:

Simply run the script:

python main.py  

Warning:

Use this code only for testing servers you are authorized to load-test. Unauthorized load testing may be illegal.

About

Server Load Check

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages