Skip to content

Commit

Permalink
Add wrk
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Sep 20, 2024
1 parent e5b20df commit 9d91b16
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
**/build/
**/dist/
**/deps/
*.tgz
*.zip
*.tar.*
3 changes: 2 additions & 1 deletion pkgs/build.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
TOPDIR = $(shell git rev-parse --show-toplevel)/pkgs
OS = $(shell go env GOOS)
ARCH = $(shell go env GOARCH)
MAKEFLAGS = -j$(shell nproc 2> /dev/null || sysctl -n hw.ncpu)

ifndef NAME
$(error NAME is not set)
Expand Down Expand Up @@ -50,4 +51,4 @@ pkg.tar.gz:
curl -fsSL $(SOURCE) -o pkg.tar.gz

version:
@echo $(VERSION)
@echo $(VERSION)
11 changes: 11 additions & 0 deletions pkgs/wrk/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
VERSION ?= 4.2.0
NAME = wrk
SOURCE = https://github.com/wg/wrk/archive/refs/tags/$(VERSION).tar.gz

include $(shell git rev-parse --show-toplevel)/pkgs/build.mk

build:
$(MAKE)

install:
install -m755 wrk $(DESTDIR)/$(NAME)

0 comments on commit 9d91b16

Please sign in to comment.