# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 sysbench

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

## 安装

```sh
sudo av install brew:sysbench
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sysbench
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sysbench
```

  证据: MacPorts ports tree: benchmarks/sysbench/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add sysbench
```

  证据: Alpine Linux edge package indexes: sysbench from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install sysbench
```

  证据: Debian stable package indexes: sysbench from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install sysbench
```

  证据: Fedora Rawhide package metadata: sysbench from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#sysbench
```

  证据: nixpkgs package indexes: pkgs/by-name/sy/sysbench/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S sysbench
```

  证据: Arch Linux sync databases: sysbench from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install sysbench
```

  证据: openSUSE Tumbleweed package metadata: sysbench from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:sysbench
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sysbench>
- **版本:** 1.0.20
- **来源摘要:** System performance benchmark tool
- **主页:** <https://github.com/akopytov/sysbench>
- **仓库:** <https://github.com/akopytov/sysbench>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/akopytov/sysbench/archive/refs/tags/1.0.20.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sysbench (cli)
- sysbench (别名)

## 依赖

- libpq
- luajit
- mariadb-connector-c

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## macOS 提供的库

- vim

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.20
- 本地数据: OK
- 上游仓库: https://github.com/akopytov/sysbench
- 检测到的最新版本: 1.0.20 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

sysbench is a scriptable multi-threaded benchmark CLI, best known in package-manager culture as a quick way to install repeatable CPU, memory, file I/O, thread, mutex, and database benchmark workloads.

### 项目历史

The official README describes sysbench as a LuaJIT-based, scriptable, multi-threaded benchmark tool. Although it is frequently used for database benchmarks, upstream explicitly presents it as a general workload engine that can create complex benchmarks without a database server.

The 1.0 release series, visible in the official GitHub releases page, turned sysbench into a regularly packaged upstream with release notes that repeatedly mention CI, Linux distribution packaging, macOS build fixes, and compatibility with PostgreSQL and MySQL versions.

### 采用历史

Upstream documents binary installation through packagecloud repositories for Debian/Ubuntu, RHEL/CentOS, and Fedora, and also points Arch Linux users to `pacman -Suy sysbench`.

The input package facts list sysbench across apk, Homebrew, Debian, Fedora/dnf, MacPorts, Nix, Arch, Ubuntu, and zypper ecosystems, which matches its role as a standard benchmark utility carried by many Unix-like package managers.

### 使用方式

Typical CLI usage is `sysbench [options]... [testname] [command]`, with bundled workloads such as `oltp_*.lua`, `fileio`, `cpu`, `memory`, `threads`, and `mutex`.

Database users commonly install sysbench to generate OLTP-like load, while systems users use the same command to compare machines, virtual instances, storage, or packaging choices with a small reproducible benchmark.

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

sysbench matters to package nerds because it is both a package and a measuring stick for packages: it is often installed to compare hardware, kernels, database builds, filesystem behavior, or VM/container performance.

Its LuaJIT scripting model makes it more flexible than a fixed microbenchmark while staying easy to ship as a single command-line tool.

### 时间线

- 2018-04-01: sysbench 1.0.14 release notes included JSON stats reporter fixes.
- 2018-12-16: sysbench 1.0.16 release notes included packaging matrix updates and SQL/API fixes.
- 2019-10-21: sysbench 1.0.18 release notes included Debian Buster, CentOS 8, Fedora 30, and macOS Mojave build-related work.
- 2020-04-24: sysbench 1.0.20 was released with CI and packaging updates including arm64 and Ubuntu Focal.

### Related projects

- LuaJIT is central to sysbench's scripting model.
- MySQL, PostgreSQL, and other SQL servers are common benchmark targets through sysbench's bundled OLTP workloads.
- packagecloud is used by upstream for binary package repositories.

### 来源

- <https://github.com/akopytov/sysbench#readme>
- <https://github.com/akopytov/sysbench/releases>
- <https://packagecloud.io/akopytov/sysbench/install>
- input source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sysbench
- **Version Scheme:** 0
- **Revision:** 7
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Debian apt - sysbench - 1.0.20+ds-7: normalized package name match | Debian stable package indexes: sysbench from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | multi-threaded benchmark tool for database systems | https://github.com/akopytov/sysbench
- Nix - sysbench: normalized package name match | nixpkgs package indexes: pkgs/by-name/sy/sysbench/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - sysbench - 1.0.20+ds-6build2: normalized package name match | Ubuntu 24.04 LTS package indexes: sysbench from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | multi-threaded benchmark tool for database systems | https://github.com/akopytov/sysbench
- apk - sysbench - 1.0.20-r5: normalized package name match | Alpine Linux edge package indexes: sysbench from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Scriptable database and system performance benchmark | https://github.com/akopytov/sysbench
- apk - sysbench-dev - 1.0.20-r5: normalized package name match | Alpine Linux edge package indexes: sysbench-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Scriptable database and system performance benchmark (development files) | https://github.com/akopytov/sysbench
- apk - sysbench-doc - 1.0.20-r5: normalized package name match | Alpine Linux edge package indexes: sysbench-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Scriptable database and system performance benchmark (documentation) | https://github.com/akopytov/sysbench
- dnf - sysbench - 1.0.20-21.fc45: normalized package name match | Fedora Rawhide package metadata: sysbench from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | System performance benchmark | https://github.com/akopytov/sysbench/
- pacman - sysbench - 1.0.20-2: normalized package name match | Arch Linux sync databases: sysbench from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Scriptable multi-threaded benchmark tool for databases and systems | https://github.com/akopytov/sysbench
- zypper - sysbench - 1.0.20-1.29: normalized package name match | openSUSE Tumbleweed package metadata: sysbench from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A MySQL benchmarking tool | https://github.com/akopytov/sysbench
- MacPorts - sysbench: normalized package name match | MacPorts ports tree: benchmarks/sysbench/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [libpq](https://pkg.so/zh-hans/brew/libpq/) - Runtime dependency declared by Homebrew.
- [luajit](https://pkg.so/zh-hans/brew/luajit/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [fio](https://pkg.so/zh-hans/brew/fio/) - Shares pkgdb curated category or tags: benchmark, cli, performance, system.
- [mbw](https://pkg.so/zh-hans/brew/mbw/) - Shares pkgdb curated category or tags: benchmark, cli, performance, system.
- [bonnie++](https://pkg.so/zh-hans/brew/bonnie/) - Shares pkgdb curated category or tags: benchmark, cli, performance, system.
- [numactl](https://pkg.so/zh-hans/brew/numactl/) - Shares pkgdb curated category or tags: cli, performance, system.
- [jemalloc](https://pkg.so/zh-hans/brew/jemalloc/) - Shares pkgdb curated category or tags: cli, performance, system.
- [asitop](https://pkg.so/zh-hans/brew/asitop/) - Shares pkgdb curated category or tags: cli, performance, system.
- [macchina](https://pkg.so/zh-hans/brew/macchina/) - Shares pkgdb curated category or tags: cli, performance, system.
- [atop](https://pkg.so/zh-hans/brew/atop/) - Shares pkgdb curated category or tags: cli, performance, system.
- [fuc](https://pkg.so/zh-hans/brew/fuc/) - Local package facts share a topical domain. Shared terms: cli, performance, system.

## Combined YAML source

View the package source record on GitHub. [combined/sysbench.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sysbench.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
