Automic VaultAutomic Vault

brew

Install wrk with Homebrew, apk, apt, MacPorts, Nix, zypper

HTTP benchmarking tool. Version 4.2.0 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install wrk

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install wrk

MacPorts ports tree · net/wrk/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add wrk

Alpine Linux edge package indexes · wrk · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install wrk

Debian stable package indexes · wrk · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#wrk

nixpkgs package indexes · pkgs/by-name/wr/wrk/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install wrk

openSUSE Tumbleweed package metadata · wrk · source: download.opensuse.org

overview

Package summary

HTTP benchmarking tool

Commands and aliases

  • wrk

history

Project history and usage

wrk is a high-performance HTTP benchmarking tool by Will Glozer. Its README describes it as a modern tool capable of generating significant load from a single multi-core CPU by combining a multithreaded design with scalable event notification systems such as epoll and kqueue.

The tool became a standard name in web-performance circles because it is small, fast, scriptable with LuaJIT, and easy to invoke in repeatable local benchmarks. It occupies the practical space between older ApacheBench-style smoke tests and heavier distributed load-testing systems.

Project history

The `wg/wrk` repository was created on 20 March 2012, and FreeBSD ports metadata shows wrk entering the FreeBSD ports tree on 1 August 2012. That early packaging matters: wrk quickly became a Unix-packaged benchmarking binary rather than only a GitHub project to build manually.

The 4.x line continued the same minimal command-line design. Git tag metadata places wrk 4.1.0 in January 2018 and 4.2.0 in February 2021. The README still emphasizes the core model: threads, connections, duration, optional latency reporting, custom headers, and optional LuaJIT scripting for request generation, response processing, and custom reporting.

Adoption history

wrk's adoption is visible in both package-manager coverage and GitHub popularity. The repository has accumulated tens of thousands of stars and thousands of forks, and the tool is packaged across common Unix-like ecosystems. FreeBSD has carried it under `benchmarks/wrk` since 2012.

Its niche adoption came from being able to generate large amounts of HTTP load from one machine, which made it attractive for web-server comparisons, local regression checks, and performance blog posts. The README's own example shows a 30-second run with 12 threads and 400 connections, a command shape that became a common shorthand for quick HTTP load tests.

How it is used

The canonical invocation is `wrk -t12 -c400 -d30s URL`, where `-t` sets threads, `-c` sets open HTTP connections, and `-d` sets duration. Users add `--latency` for latency distributions, `-H` for headers, and `-s` for LuaJIT scripts when a static GET request is not enough.

wrk is best used for controlled benchmark comparisons rather than full production traffic modeling. The README warns that the client machine needs enough ephemeral ports and that per-request scripting or response callbacks reduce the amount of load the tool can generate.

Why package nerds care

wrk is one of the package-manager canonical HTTP benchmark binaries: short name, single executable, stable README usage, and enough performance to stress real services from a laptop or build host. That combination made it a frequent dependency of performance-minded developers even when it is not a library dependency of applications.

It is also historically important as a C/LuaJIT benchmark tool in a field crowded with language-specific clients. Package nerds care because it offers a compact, reproducible baseline for HTTP throughput and latency testing across machines and operating systems.

Timeline

  • 2012-03-20: The `wg/wrk` GitHub repository is created.
  • 2012-08-01: FreeBSD ports adds `benchmarks/wrk`.
  • 2018-01-21: Git tag metadata places wrk 4.1.0 in early 2018.
  • 2021-02-07: Git tag metadata places wrk 4.2.0 in early 2021.
  • 2020s: wrk remains widely packaged and commonly cited for HTTP benchmarking.

Related projects

  • LuaJIT is used for wrk's scripting extension point.
  • ApacheBench, siege, vegeta, hey, and k6 are common comparison points in HTTP benchmarking and load testing.
  • go-wrk and other similarly named tools are separate implementations or derivatives inspired by wrk's niche.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:http

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
wrkcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version4.2.0
manager updated2026-06-25
local dataok
upstreamcurrent
latest detected4.2.0

https://github.com/wg/wrk

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:wrk
Version4.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/wrk
Homepagehttps://github.com/wg/wrk
Repositoryhttps://github.com/wg/wrk
Upstream docshttps://github.com/wg/wrk#readme
LicenseLicenseRef-Homebrew-cannot-represent
Source archivehttps://github.com/wg/wrk/archive/refs/tags/4.2.0.tar.gz
Last updated2026-06-25T13:38:12+02:00
Pulseupdated
Dependenciesluajit, openssl@4
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namewrk
Version Scheme0
Revision2
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

wrk 4.1.0-4+b1

HTTP benchmarking tool

https://github.com/wg/wrk

sudo apt install wrk
  • Section: web
  • Architecture: amd64
  • Source Package: wrk
  • 4 dependencies
  • normalized package name match
  • Matched by: Wrk
Debian stable package indexes · deb.debian.org · Debian stable package indexes: wrk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

wrk

nix profile install nixpkgs#wrk
  • normalized package name match
  • Matched by: Wrk
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/wr/wrk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

wrk 4.1.0-4build2

HTTP benchmarking tool

https://github.com/wg/wrk

sudo apt install wrk
  • Section: universe/web
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Wrk
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: wrk from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

wrk 4.2.0-r3

wrk is a modern HTTP benchmarking tool

https://github.com/wg/wrk

sudo apk add wrk
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: wrk
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Wrk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wrk from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

wrk-doc 4.2.0-r3

wrk is a modern HTTP benchmarking tool (documentation)

https://github.com/wg/wrk

sudo apk add wrk-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: wrk
  • normalized package name match
  • Matched by: Wrk
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wrk-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
zypper95%

wrk 4.2.0-2.3

Modern HTTP benchmarking tool

https://github.com/wg/wrk

sudo zypper install wrk
  • License: Apache-2.0
  • Category: Productivity/Networking/Web/Utilities
  • Architecture: x86_64
  • Source Package: wrk
  • 5 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Wrk
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: wrk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

wrk

sudo port install wrk
  • normalized package name match
  • Matched by: Wrk
MacPorts ports tree · api.github.com · MacPorts ports tree: net/wrk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment