<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.campisano.org/wiki/Http_benchmark/history?feed=atom</id>
	<title>Http benchmark - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.campisano.org/wiki/Http_benchmark/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://www.campisano.org/wiki/Http_benchmark/history"/>
	<updated>2026-04-15T00:47:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://www.campisano.org/mediawiki/index.php?title=Http_benchmark&amp;diff=2630&amp;oldid=prev</id>
		<title>T1t0: Created page with &quot;= Siege =  from https://github.com/JoeDog/siege  * static compile  example using siege-4.1.1  &lt;pre&gt; ./configure --prefix=/tmp/siege --enable-static --without-ssl make cd src/...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.campisano.org/mediawiki/index.php?title=Http_benchmark&amp;diff=2630&amp;oldid=prev"/>
		<updated>2021-11-20T01:18:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Siege =  from https://github.com/JoeDog/siege  * static compile  example using siege-4.1.1  &amp;lt;pre&amp;gt; ./configure --prefix=/tmp/siege --enable-static --without-ssl make cd src/...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Siege =&lt;br /&gt;
&lt;br /&gt;
from https://github.com/JoeDog/siege&lt;br /&gt;
&lt;br /&gt;
* static compile&lt;br /&gt;
&lt;br /&gt;
example using siege-4.1.1&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --prefix=/tmp/siege --enable-static --without-ssl&lt;br /&gt;
make&lt;br /&gt;
cd src/&lt;br /&gt;
rm -f siege&lt;br /&gt;
gcc -I/include/zlib -I/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -o siege_static array.o auth.o base64.o browser.o cache.o cookie.o cookies.o cfg.o creds.o crew.o data.o date.o eval.o ftp.o getopt.o getopt1.o handler.o hash.o http.o init.o load.o log.o main.o md5.o memory.o notify.o page.o parser.o perl.o response.o sock.o ssl.o stralloc.o timer.o url.o util.o version.o  -L/usr/lib -lpthread -lz -static -static-libgcc -static-libstdc++&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* url random parameter test (to avoid cache)&lt;br /&gt;
&lt;br /&gt;
first add an url variable for your site, adding a nonexistent empty query parameter&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;#039;U=http://www.campisano.org/?nonexistent_param=&amp;#039; &amp;gt; requests.siege&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then add url parameters&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for i in `seq 1 1000`; do echo &amp;#039;$(U)&amp;#039;$i; done &amp;gt;&amp;gt; requests.siege&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
finally, execute 100 concurrent requests continuously&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./siege_static -c 100 -b --no-parser --no-follow -v -f requests.siege&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
note, for a more aggressive test, you should use a custom siege conf file like the follow one&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
connection = keep-alive&lt;br /&gt;
failures = 65535&lt;br /&gt;
timeout = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and run using nohup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nohup ./siege_static -R ./siegerc -c 1000 -b --no-parser --no-follow -v -f requests.siege &amp;gt; /tmp/nohup.log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;br /&gt;
echo $! &amp;gt; /tmp/nohup.pid&lt;br /&gt;
tail -f /tmp/nohup.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= httperf =&lt;br /&gt;
&lt;br /&gt;
from https://github.com/httperf/httperf&lt;br /&gt;
&lt;br /&gt;
* static compile&lt;br /&gt;
&lt;br /&gt;
example using [https://github.com/httperf/httperf/tree/de8cd6ad8a79779a0cb74a4aa2175afa9e24df57 commit de8cd6ad8a79779a0cb74a4aa2175afa9e24df57] (Dec 6, 2020)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su -c &amp;#039;apt install automake libtool&amp;#039;&lt;br /&gt;
libtoolize --force&lt;br /&gt;
autoconf -i&lt;br /&gt;
automake&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
note, I must edit ./configure file to disable ssl...&lt;br /&gt;
&lt;br /&gt;
then&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./configure --prefix=/tmp/httperf --enable-static&lt;br /&gt;
make&lt;br /&gt;
cd src&lt;br /&gt;
rm -f httperf&lt;br /&gt;
gcc -I. -I./gen -I./lib -I./stat -g -O2 -o httperf_static httperf.o object.o call.o conn.o sess.o core.o localevent.o http.o timer.o  gen/libgen.a lib/libutil.a stat/libstat.a -lcrypto -lm -static&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TO BE CONTINUED&lt;br /&gt;
&lt;br /&gt;
= AB =&lt;br /&gt;
&lt;br /&gt;
from https://httpd.apache.org/docs/2.4/programs/ab.html&lt;br /&gt;
&lt;br /&gt;
TO BE CONTINUED&lt;/div&gt;</summary>
		<author><name>T1t0</name></author>
	</entry>
</feed>