import benchmarks/siege, a multi-threaded http benchmark tool, fairly

good for testing performance with multiple TCP streams.

Siege is an http regression testing and benchmarking utility. It
was designed to let web developers measure the performance of their
code under duress, to see how it will stand up to load on the
internet. Siege supports basic authentication, cookies, HTTP and
HTTPS protocols. It allows the user hit a web server with a
configurable number of concurrent simulated users. Those users place
the webserver "under siege."
This commit is contained in:
sthen 2009-04-09 00:19:14 +00:00
parent 95b6e5d063
commit 678bb6dc57
8 changed files with 141 additions and 0 deletions

34
benchmarks/siege/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/04/09 00:19:14 sthen Exp $
COMMENT = multi-threaded HTTP benchmark and regression tester
DISTNAME = siege-2.67
CATEGORIES = benchmarks www
HOMEPAGE = http://www.joedog.org/index/siege-home
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += c crypto pthread ssl
# main distribution site is broken for EPSV/EPRT as of 20090409
MASTER_SITES = http://spacehopper.org/mirrors/ \
ftp://ftp.joedog.org/pub/siege/
MAKE_FLAGS = localstatedir='/var/log/siege'
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --localstatedir=/var/log/siege \
--sysconfdir=${SYSCONFDIR}/siege
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/siege
${INSTALL_DATA} ${WRKSRC}/doc/urls.txt ${WRKSRC}/doc/siegerc \
${PREFIX}/share/examples/siege
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (siege-2.67.tar.gz) = 6nsHtDI8KuE6Bw6F+tGLvg==
RMD160 (siege-2.67.tar.gz) = Sh5lpdULw89SQ70ZEr/J07eH/ak=
SHA1 (siege-2.67.tar.gz) = i+s3oKLdUlOuJTSQPSb+K3808/s=
SHA256 (siege-2.67.tar.gz) = CmWwxLxEndJiSQ+usF9nTtg1nZlx+vTFqQWhyFdS2sY=
SIZE (siege-2.67.tar.gz) = 524276

View File

@ -0,0 +1,40 @@
$OpenBSD: patch-configure,v 1.1.1.1 2009/04/09 00:19:14 sthen Exp $
--- configure.orig Fri Apr 11 18:24:35 2008
+++ configure Wed Feb 18 11:24:43 2009
@@ -24860,13 +24860,13 @@ PTHREAD_CFLAGS=error
PTHREAD_LDFLAGS=error
if test "x$PTHREAD_LDFLAGS" = xerror; then
- echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
-echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking for pthread_attr_init in -pthread" >&5
+echo $ECHO_N "checking for pthread_attr_init in -pthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -24916,8 +24916,8 @@ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthre
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
- PTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
- PTHREAD_LDFLAGS="-lpthread"
+ PTHREAD_CFLAGS="-pthread"
+ PTHREAD_LDFLAGS="-pthread"
fi
fi
@@ -26506,7 +26506,7 @@ done
#define JOEPATH_H
#define SIEGE_HOME "$prefix"
-#define CNF_FILE "$sysconfdir/urls.txt"
+#define CNF_FILE "$sysconfdir/siege/urls.txt"
#define LOG_FILE "$localstatedir/siege.log"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2009/04/09 00:19:14 sthen Exp $
--- doc/Makefile.in.orig Wed Feb 18 11:05:55 2009
+++ doc/Makefile.in Wed Feb 18 11:06:07 2009
@@ -335,7 +335,7 @@ install-exec: install-exec-am
install-data: install-data-am
install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-data-am
installcheck: installcheck-am
install-strip:

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_init_c,v 1.1.1.1 2009/04/09 00:19:14 sthen Exp $
--- src/init.c.orig Wed Feb 18 11:22:30 2009
+++ src/init.c Wed Feb 18 11:23:45 2009
@@ -90,8 +90,7 @@ init_config( void )
}
if(strlen(my.file) < 1){
- strcpy( my.file, SIEGE_HOME );
- strcat( my.file, "/etc/urls.txt" );
+ strcpy( my.file, CNF_FILE );
}
if(strlen(my.uagent) < 1)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-utils_siege_config_in,v 1.1.1.1 2009/04/09 00:19:14 sthen Exp $
--- utils/siege.config.in.orig Wed Feb 18 11:27:17 2009
+++ utils/siege.config.in Wed Feb 18 11:27:29 2009
@@ -14,7 +14,7 @@ if test -f $rcfile; then
echo "siege.config"
echo "usage: siege.config [no arguments]"
echo "----------------------------------"
- echo "Resource file already install as $rcfile"
+ echo "Resource file already installed as $rcfile"
echo "Use your favorite editor to change your configuration by"
echo "editing the values in that file."
echo ""

View File

@ -0,0 +1,7 @@
Siege is an http regression testing and benchmarking utility. It
was designed to let web developers measure the performance of their
code under duress, to see how it will stand up to load on the
internet. Siege supports basic authentication, cookies, HTTP and
HTTPS protocols. It allows the user hit a web server with a
configurable number of concurrent simulated users. Those users place
the webserver "under siege."

View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/04/09 00:19:14 sthen Exp $
bin/bombardment
@bin bin/siege
bin/siege.config
bin/siege2csv.pl
@man man/man1/bombardment.1
@man man/man1/siege.1
@man man/man1/siege.config.1
@man man/man1/siege2csv.1
@man man/man5/urls_txt.5
@man man/man7/layingsiege.7
share/examples/siege/
share/examples/siege/siegerc
share/examples/siege/urls.txt
@sample ${SYSCONFDIR}/siege/
@sample ${SYSCONFDIR}/siege/urls.txt
@mode 775
@sample /var/log/siege/