libcpucycles
« Back to VersTracker
Description:
Microlibrary for counting CPU cycles
Type: Formula  |  Latest Version: 20250925@0  |  Tracked Since: Dec 26, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: benchmarking performance c-library hardware metrics
Install: brew install libcpucycles
About:
libcpucycles is a highly optimized microlibrary for accurately measuring CPU cycle counts on various processor architectures. It provides a simple, low-overhead interface for performance-critical applications, abstracting away hardware-specific details. Its main value is enabling precise microbenchmarking and performance analysis in C/C++ projects.
Key Features:
  • Low-overhead cycle counting
  • Supports multiple architectures (x86, ARM, etc.)
  • Simple C API
  • High precision for microbenchmarks
Use Cases:
  • Performance profiling of tight loops
  • Cryptographic library benchmarking
  • Real-time system latency measurement
Alternatives:
  • Google Benchmark – Full-featured benchmarking framework vs. lightweight cycle counter
  • RDTSC (inline assembly) – Manual hardware access vs. portable abstraction
Version History
Detected Version Rev Change Commit
Dec 26, 2025 11:04am 20250925 0 VERSION_BUMP 43468896
Sep 26, 2025 12:38am 0 NEW 03fc21a3