Table of Contents
Overview
Siege is a multi-threaded HTTP load testing and benchmarking utility designed to let web developers measure their code under duress.
Key Features
- Concurrent user simulation
- URL file support
- HTTP/HTTPS testing
- Cookie support
- Basic authentication
- POST/PUT data support
- Detailed statistics
- Configuration file support
Installation
Ubuntu (22.04/24.04)
macOS
Basic Usage
Simple Tests
Basic Options
Advanced Options
Authentication and Headers
POST Requests
Configuration
Siege Configuration File
Sample Configuration
URL File Usage
Statistics Analysis
Understanding Output
Logging Options
Load Testing Strategies
Progressive Load Testing
Extended Duration Tests
Mixed Request Testing
Best Practices
Testing Guidelines
Resource Monitoring
Quick Reference
Essential Commands
Common Options
Example Configurations
API Load Test
Web Application Test
Remember:
- Start with low concurrency
- Monitor server resources
- Use appropriate delays
- Consider internet simulation for realism
- Log results for analysis
- Watch for error rates
For detailed information, consult the siege man page (man siege
).