Browse Source

benchmarks/hey: Add port from upstream

Bernhard Fröhlich 2 months ago
parent
commit
076650ca33
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333
3 changed files with 41 additions and 0 deletions
  1. 33
    0
      benchmarks/hey/Makefile
  2. 5
    0
      benchmarks/hey/distinfo
  3. 3
    0
      benchmarks/hey/pkg-descr

+ 33
- 0
benchmarks/hey/Makefile View File

@@ -0,0 +1,33 @@
1
+# Created by: Brad Davis <brd@FreeBSD.org>
2
+# $FreeBSD: head/benchmarks/hey/Makefile 463776 2018-03-07 08:06:24Z yuri $
3
+
4
+PORTNAME=	hey
5
+PORTVERSION=	0.1.0
6
+DISTVERSIONPREFIX=	v
7
+CATEGORIES=	benchmarks
8
+
9
+MAINTAINER=	brd@FreeBSD.org
10
+COMMENT=	Tiny program that sends some load to a web application
11
+
12
+BUILD_DEPENDS=	go>=1.7:lang/go
13
+
14
+USE_GITHUB=	yes
15
+GH_ACCOUNT=	rakyll
16
+
17
+GH_TUPLE=	golang:net:41bba8d:net/src/golang.org/x/net
18
+
19
+PLIST_FILES=	bin/hey
20
+
21
+do-build:
22
+	( cd ${WRKSRC}; \
23
+		${MKDIR} src/github.com/rakyll/hey; \
24
+		cd src/github.com/rakyll/hey; \
25
+		${LN} -s ../../../../requester . )
26
+	( cd ${WRKSRC}; \
27
+		${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} CC=clang \
28
+		go build ${BUILD_FLAGS} )
29
+
30
+do-install:
31
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${PORTVERSION} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
32
+
33
+.include <bsd.port.mk>

+ 5
- 0
benchmarks/hey/distinfo View File

@@ -0,0 +1,5 @@
1
+TIMESTAMP = 1497559091
2
+SHA256 (rakyll-hey-v0.1.0_GH0.tar.gz) = a8127634e21897c587c6c375f88121e907ce4af8bf71374db44c5d752ae4a296
3
+SIZE (rakyll-hey-v0.1.0_GH0.tar.gz) = 11853
4
+SHA256 (golang-net-41bba8d_GH0.tar.gz) = 003c999bb8c3d73cc3dae0ca48e8afcb77cf58cb6e2b25b4486ff602deacb8eb
5
+SIZE (golang-net-41bba8d_GH0.tar.gz) = 770083

+ 3
- 0
benchmarks/hey/pkg-descr View File

@@ -0,0 +1,3 @@
1
+hey is tool to to test HTTP/HTTP2 performance.
2
+
3
+WWW: https://github.com/rakyll/hey

Loading…
Cancel
Save