summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-02-22 17:17:49 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-02-22 17:17:49 +0000
commitcf3ae113910d2084e878d6b5e50f32298e386b79 (patch)
tree23adedd1770c4de5a9247c192e887c5206d55fb0
parentUpdate to 3.3.0 (diff)
Add gobench 1.1
goBench is a HTTP(S) benchmarking tool designed for high throughput to replace existing benchmarking/load tools which have concurrency issues. We are working so hard to optimize our servers - why shouldn't we do also it for our clients testers?! WWW: https://github.com/tabrarg/gobench - While I'm here: - Add LICENSE_FILE - Change BUILD_DEPENDS to RUN_DEPENDS - Remove GH_PROJECT - Respect LOCALBASE PR: 217213 Submitted by: Guy Tabrar <guy.tabrar@me.com>
-rw-r--r--benchmarks/Makefile1
-rw-r--r--benchmarks/gobench/Makefile29
-rw-r--r--benchmarks/gobench/distinfo3
-rw-r--r--benchmarks/gobench/pkg-descr6
-rw-r--r--benchmarks/gobench/pkg-plist3
5 files changed, 42 insertions, 0 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index 12721ca5a330..265a91d5336b 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -21,6 +21,7 @@
SUBDIR += flowgrind
SUBDIR += forkbomb
SUBDIR += glmark2
+ SUBDIR += gobench
SUBDIR += gtkperf
SUBDIR += himenobench
SUBDIR += hpl
diff --git a/benchmarks/gobench/Makefile b/benchmarks/gobench/Makefile
new file mode 100644
index 000000000000..24d4df02c6c3
--- /dev/null
+++ b/benchmarks/gobench/Makefile
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME= gobench
+PORTVERSION= 1.1
+CATEGORIES= benchmarks net
+
+MAINTAINER= guy.tabrar@me.com
+COMMENT= HTTP benchmarking tool written in Go
+
+LICENSE= BSD3CLAUSE
+
+RUN_DEPENDS= go:lang/go \
+ go-fasthttp>=0:www/go-fasthttp
+
+USE_GITHUB= yes
+GH_ACCOUNT= tabrarg
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/gobench
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/gobench ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/gobench.go ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/man/gobench.1 ${STAGEDIR}${PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/benchmarks/gobench/distinfo b/benchmarks/gobench/distinfo
new file mode 100644
index 000000000000..f636266af9f2
--- /dev/null
+++ b/benchmarks/gobench/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1487485531
+SHA256 (tabrarg-gobench-1.1_GH0.tar.gz) = 0c5aa018947ad61f3e67c9bd6ddac4a15d19043cc485f7a5e997191d59aed641
+SIZE (tabrarg-gobench-1.1_GH0.tar.gz) = 6963
diff --git a/benchmarks/gobench/pkg-descr b/benchmarks/gobench/pkg-descr
new file mode 100644
index 000000000000..524968316913
--- /dev/null
+++ b/benchmarks/gobench/pkg-descr
@@ -0,0 +1,6 @@
+goBench is a HTTP(S) benchmarking tool designed for high throughput
+to replace existing benchmarking/load tools which have concurrency
+issues. We are working so hard to optimize our servers - why shouldn't
+we do also it for our clients testers?!
+
+WWW: https://github.com/tabrarg/gobench
diff --git a/benchmarks/gobench/pkg-plist b/benchmarks/gobench/pkg-plist
new file mode 100644
index 000000000000..3675f767b247
--- /dev/null
+++ b/benchmarks/gobench/pkg-plist
@@ -0,0 +1,3 @@
+bin/gobench
+bin/gobench.go
+man/man1/gobench.1.gz