HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

siege — HTTP loadtesting and benchmarking tool. More information: <https://www.joedog.org/siege-manual/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpcommandloadtestingandbenchmarkingclisiegetool

Problem

How to use the siege command: HTTP loadtesting and benchmarking tool. More information: <https://www.joedog.org/siege-manual/>.

Solution

siege — HTTP loadtesting and benchmarking tool. More information: <https://www.joedog.org/siege-manual/>.

Test a URL with default settings:
siege {{https://example.com}}


Test a list of URLs:
siege {{[-f|--file]}} {{path/to/url_list.txt}}


Test list of URLs in a random order (Simulates internet traffic):
siege {{[-i|--internet]}} {{[-f|--file]}} {{path/to/url_list.txt}}


Benchmark a list of URLs (without waiting between requests):
siege {{[-b|--benchmark]}} {{[-f|--file]}} {{path/to/url_list.txt}}


Set the amount of concurrent connections:
siege {{[-c|--concurrent]}} {{50}} {{[-f|--file]}} {{path/to/url_list.txt}}


Set how long for the siege to run for:
siege {{[-t|--time]}} {{30s}} {{[-f|--file]}} {{path/to/url_list.txt}}

Code Snippets

Test a URL with default settings

siege {{https://example.com}}

Test a list of URLs

siege {{[-f|--file]}} {{path/to/url_list.txt}}

Test list of URLs in a random order (Simulates internet traffic)

siege {{[-i|--internet]}} {{[-f|--file]}} {{path/to/url_list.txt}}

Benchmark a list of URLs (without waiting between requests)

siege {{[-b|--benchmark]}} {{[-f|--file]}} {{path/to/url_list.txt}}

Set the amount of concurrent connections

siege {{[-c|--concurrent]}} {{50}} {{[-f|--file]}} {{path/to/url_list.txt}}

Context

tldr-pages: common/siege

Revisions (0)

No revisions yet.