macOS
brew install libcpucycleslocal Homebrew formula metadata
brew
libcpucycles のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install libcpucycleslocal Homebrew formula metadata
sudo dnf install libcpucyclesFedora Rawhide package metadata · libcpucycles · ソース: dl.fedoraproject.org
nix profile install nixpkgs#libcpucyclesnixpkgs package indexes · pkgs/by-name/li/libcpucycles/package.nix · ソース: api.github.com
sudo apt install cpucyclesDebian stable package indexes · cpucycles · ソース: deb.debian.org
概要
Microlibrary for counting CPU cycles
履歴
libcpucycles is a small timing library for counting CPU cycles across multiple CPU and operating-system counter mechanisms. It comes from the cr.yp.to ecosystem associated with Daniel J. Bernstein's performance-oriented cryptographic and systems software.
The official introduction describes libcpucycles as a microlibrary for cycle counting, with a simple API: include `cpucycles.h`, call `cpucycles()`, and link with `-lcpucycles`. The project abstracts machine-level counters such as amd64 TSC/PMC, ARM counters, RISC-V counters, and OS fallbacks such as `mach_absolute_time`, `perf_event`, `CLOCK_MONOTONIC`, and `gettimeofday`.
The release notes visible in the 20250925 documentation show active portability work after the early 2023 tarballs, including s390x counter support, FreeBSD support, arm32-1176 support, a `cpucycles-info` man page, and macOS build fixes.
Adoption is concentrated among developers who need reproducible low-overhead timing for cryptography, benchmarking, and systems tuning. Its appearance in Homebrew, Debian, Ubuntu, Fedora-family packages, and Nix reflects a package-manager role as a tiny measurement primitive rather than an end-user application.
Programmers use libcpucycles when they want an architecture-aware cycle counter without writing per-platform assembly and fallback code. Package users also get tools such as `cpucycles-info` and `cpucycles-open`, which help inspect available counters and support benchmarking workflows.
libcpucycles is package-nerd interesting because it packages the messy hardware reality of cycle counters into a minimal library. It is deliberately small, but its value is in the portability table: one dependency handles CPU families and OS timing APIs that would otherwise become build-system conditionals in every benchmark.
セキュリティ状態
library-like package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
cpucycles-info | cli | グローバル実行可能ファイル | |
cpucycles-open | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:libcpucycles |
|---|---|
| バージョン | 20260625 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/libcpucycles |
| ホームページ | https://cpucycles.cr.yp.to/ |
| 上流ドキュメント | https://cpucycles.cr.yp.to/ |
| ライセンス | LicenseRef-Homebrew-public-domain OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT |
| ソースアーカイブ | https://cpucycles.cr.yp.to/libcpucycles-20260625.tar.gz |
| 最終更新 | 2026-06-25T22:50:15Z |
| Pulse | updated |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libcpucycles |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
cpucycles 0~20240318-2
command-line tool for counting CPU cycles (libcpucycles)
sudo apt install cpucycleslibcpucycles-dev 0~20240318-2
library for counting CPU cycles - development files
sudo apt install libcpucycles-devlibcpucycles1 0~20240318-2
library for counting CPU cycles
sudo apt install libcpucycles1libcpucycles
nix profile install nixpkgs#libcpucyclescpucycles 0~20240114-1
command-line tool for counting CPU cycles (libcpucycles)
sudo apt install cpucycleslibcpucycles-dev 0~20240114-1
library for counting CPU cycles - development files
sudo apt install libcpucycles-devlibcpucycles1 0~20240114-1
library for counting CPU cycles
sudo apt install libcpucycles1libcpucycles 20260105-1.fc44
Library for counting CPU cycles
sudo dnf install libcpucycleslibcpucycles-devel 20260105-1.fc44
Development files for libcpucycles
sudo dnf install libcpucycles-devellibcpucycles-static 20260105-1.fc44
Static version of the libcpucycles library
sudo dnf install libcpucycles-staticソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.