From 86123dda5dbb417fbba97556c11ae00031f20383 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 15 Jun 2017 20:52:52 +0000 Subject: Add 'hey' an HTTP benchmarking tool Reviewed by: swills (mentor) --- benchmarks/Makefile | 1 + benchmarks/hey/Makefile | 33 +++++++++++++++++++++++++++++++++ benchmarks/hey/distinfo | 5 +++++ benchmarks/hey/pkg-descr | 3 +++ 4 files changed, 42 insertions(+) create mode 100644 benchmarks/hey/Makefile create mode 100644 benchmarks/hey/distinfo create mode 100644 benchmarks/hey/pkg-descr (limited to 'benchmarks') diff --git a/benchmarks/Makefile b/benchmarks/Makefile index 88c2bc2af0a9..ff77be2906ae 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -24,6 +24,7 @@ SUBDIR += forkbomb SUBDIR += glmark2 SUBDIR += gtkperf + SUBDIR += hey SUBDIR += himenobench SUBDIR += hpl SUBDIR += hs-criterion diff --git a/benchmarks/hey/Makefile b/benchmarks/hey/Makefile new file mode 100644 index 000000000000..18e2b0ec6447 --- /dev/null +++ b/benchmarks/hey/Makefile @@ -0,0 +1,33 @@ +# Created by: Brad Davis +# $FreeBSD$ + +PORTNAME= hey +PORTVERSION= 0.1.0 +DISTVERSIONPREFIX= v +CATEGORIES= benchmarks + +MAINTAINER= brd@FreeBSD.org +COMMENT= Tiny program that sends some load to a web application + +BUILD_DEPENDS= go>=1.7:lang/go + +USE_GITHUB= yes +GH_ACCOUNT= rakyll + +GH_TUPLE= golang:net:41bba8d:net/src/golang.org/x/net + +PLIST_FILES= bin/hey + +do-build: + ( cd ${WRKSRC}; \ + ${MKDIR} src/github.com/rakyll/hey; \ + cd src/github.com/rakyll/hey; \ + ${LN} -s ../../../../requester . ) + ( cd ${WRKSRC}; \ + ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} CC=clang \ + go build ${BUILD_FLAGS} ) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${PORTVERSION} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/benchmarks/hey/distinfo b/benchmarks/hey/distinfo new file mode 100644 index 000000000000..fab2f145e1d3 --- /dev/null +++ b/benchmarks/hey/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1497559091 +SHA256 (rakyll-hey-v0.1.0_GH0.tar.gz) = a8127634e21897c587c6c375f88121e907ce4af8bf71374db44c5d752ae4a296 +SIZE (rakyll-hey-v0.1.0_GH0.tar.gz) = 11853 +SHA256 (golang-net-41bba8d_GH0.tar.gz) = 003c999bb8c3d73cc3dae0ca48e8afcb77cf58cb6e2b25b4486ff602deacb8eb +SIZE (golang-net-41bba8d_GH0.tar.gz) = 770083 diff --git a/benchmarks/hey/pkg-descr b/benchmarks/hey/pkg-descr new file mode 100644 index 000000000000..f52f2771663b --- /dev/null +++ b/benchmarks/hey/pkg-descr @@ -0,0 +1,3 @@ +hey is tool to to test HTTP/HTTP2 performance. + +WWW: https://github.com/rakyll/hey -- cgit v1.2.3