|
# HTTPS Benchmark Tool
|
|
|
|
This tool is designed to benchmark HTTP requests using a thread pool for concurrent execution.
|
|
|
|
## Usage
|
|
|
|
To use the tool, compile and run it with the following commands:
|
|
|
|
```bash
|
|
make build
|
|
./httpsbench -c <ThreadCount> -n <RequestCount> <URL>
|
|
```
|
|
|
|
### Example
|
|
|
|
```bash
|
|
./httpsbench -c 10 -n 1000 http://example.com
|
|
```
|
|
|
|
## Parameters
|
|
|
|
- `-c <ThreadCount>`: Number of threads to use in the thread pool.
|
|
- `-n <RequestCount>`: Number of HTTP requests to make.
|
|
- `<URL>`: The URL to benchmark.
|
|
|
|
## Output
|
|
|
|
The tool will output the elapsed time in seconds and milliseconds, as well as the requests per second.
|
|
|
|
## Dependencies
|
|
|
|
- libcurl
|
|
- libssl
|
|
- libcrypto
|
|
|
|
## Files
|
|
|
|
- `main.cpp`: Main program file.
|
|
- `threadpool.hpp`: Thread pool implementation.
|
|
- `http.hpp`: HTTP request function declaration.
|
|
- `Makefile`: Build script.
|
|
|
|
## License
|
|
|
|
This project is licensed under the MIT License - see the LICENSE.md file for details.
|