aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/Makefile1
-rw-r--r--benchmarks/wrk/Makefile33
-rw-r--r--benchmarks/wrk/distinfo2
-rw-r--r--benchmarks/wrk/pkg-descr5
4 files changed, 41 insertions, 0 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index 4fe6953536f3..9f4de229096d 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -71,6 +71,7 @@
SUBDIR += ubench
SUBDIR += unixbench
SUBDIR += webbench
+ SUBDIR += wrk
SUBDIR += xdd
SUBDIR += xengine
diff --git a/benchmarks/wrk/Makefile b/benchmarks/wrk/Makefile
new file mode 100644
index 000000000000..bfb137aa10a2
--- /dev/null
+++ b/benchmarks/wrk/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: wrk
+# Date created: 01 Aug 2012
+# Whom: Sergey A. Osokin <osa@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= wrk
+PORTVERSION= 1.0.0
+CATEGORIES= benchmarks www
+MASTER_SITES= http://github.com/wg/${PORTNAME}/tarball/master/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-${GITVERSION}
+
+MAINTAINER= osa@FreeBSD.org
+COMMENT= The modern HTTP benchmarking tool
+
+LICENSE= AL2
+
+FETCH_ARGS= -pRr
+GITVERSION= 0-g6d143f1
+WRKSRC= ${WRKDIR}/wg-${PORTNAME}-${GITVERSION:S/^0-g//}
+USE_GMAKE= yes
+CFLAGS+= -std=c99 -D_DECLARE_C99_LDBL_MATH
+
+PLIST_FILES= bin/wrk
+
+post-patch:
+ @${REINPLACE_CMD} '1d' ${WRKSRC}/Makefile
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/benchmarks/wrk/distinfo b/benchmarks/wrk/distinfo
new file mode 100644
index 000000000000..ba1e06473d2a
--- /dev/null
+++ b/benchmarks/wrk/distinfo
@@ -0,0 +1,2 @@
+SHA256 (wrk-1.0.0-0-g6d143f1.tar.gz) = 39de439025c6b93aa2f8cf81ab1e6f27e955275969de85510bf7a0364a27a05f
+SIZE (wrk-1.0.0-0-g6d143f1.tar.gz) = 37347
diff --git a/benchmarks/wrk/pkg-descr b/benchmarks/wrk/pkg-descr
new file mode 100644
index 000000000000..41444c356a41
--- /dev/null
+++ b/benchmarks/wrk/pkg-descr
@@ -0,0 +1,5 @@
+wrk is a modern HTTP benchmarking tool capable of generating significant
+load when run on a single multi-core CPU. It combines a multithreaded
+design with scalable event notification systems such as epoll and kqueue.
+
+WWW: https://github.com/wg/wrk/