Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, MacPorts, Nix, zypper 安装 wrk

查看 wrk 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install wrk

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install wrk

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add wrk

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

Debian apt已验证 · 92%
sudo apt install wrk

Debian stable package indexes · wrk · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#wrk

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

openSUSE zypper已验证 · 92%
sudo zypper install wrk

openSUSE Tumbleweed package metadata · wrk · 来源: download.opensuse.org

概览

软件包摘要

HTTP benchmarking tool

命令和别名

  • wrk

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:http

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
wrkcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本4.2.0
管理器更新时间2026-06-25
本地数据OK
上游当前
检测到的最新版本4.2.0

https://github.com/wg/wrk

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:wrk
版本4.2.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/wrk
主页https://github.com/wg/wrk
仓库https://github.com/wg/wrk
上游文档https://github.com/wg/wrk#readme
许可证LicenseRef-Homebrew-cannot-represent
源码归档https://github.com/wg/wrk/archive/refs/tags/4.2.0.tar.gz
最后更新2026-06-25T13:38:12+02:00
Pulseupdated
依赖luajit, openssl@4
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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