🍺 BREW Explorer

← all formulae

hdrhistogram_c

brew install hdrhistogram_c v0.11.9 CC0-1.0 OR BSD-2-Clause

C library for recording and analyzing high-dynamic-range latency histograms with 64-bit counters.

Why you might care

Essential for performance profiling and latency analysis in low-level C code; tracks microsecond-scale timings across wide ranges (nanoseconds to hours) with minimal overhead. Used as a dependency in observability and benchmarking tools that need precise histogram data without floating-point approximation.

Categories

Alternatives

hdrhistogram prometheus client libraries jemalloc
54.0k
30-day installs · #117
223.4k
90-day · #84
438.0k
365-day · #164
277
★ GitHub stars · updated 10mo ago

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "hdrhistogram",
    "prometheus client libraries",
    "jemalloc"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "library",
    "profiler",
    "benchmark"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "C port of the HdrHistogram",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:35+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "hdrhistogram_c",
  "github_default_branch": "main",
  "github_last_commit_at": "2025-08-25T02:37:01Z",
  "github_readme_excerpt": "HdrHistogram_c: \u0027C\u0027 port of High Dynamic Range (HDR) Histogram\n\nHdrHistogram\n----------------------------------------------\n\n[![Gitter chat](https://badges.gitter.im/HdrHistogram/HdrHistogram.png)](https://gitter.im/HdrHistogram/HdrHistogram)\n\nThis port contains a subset of the functionality supported by the Java\nimplementation.  The current supported features are:\n\n* Standard histogram with 64 bit counts (32/16 bit counts not supported)\n* All iterator types (all values, recorded, percentiles, linear, logarithmic)\n* Histogram serialisation (encoding version 1.2, decoding 1.0-1.2)\n* Reader/writer phaser and interval recorder\n\nFeatures not supported, but planned\n\n* Auto-resizing of histograms\n\nFeatures unlikely to be implemented\n\n* Double histograms\n* Atomic/Concurrent histograms\n* 16/32 bit histograms\n\n# Simple Tutorial\n\n## Recording values\n\n```C\n#include \u003chdr_histogram.h\u003e\n\nstruct hdr_histogram* histogram;\n\n// Initialise the histogram\nhdr_init(\n    1,  // Minimum value\n    INT64_C(3600000000),  // Maximum value\n    3,  // Number of significant figures\n    \u0026histogram)  // Pointer to initialise\n\n// Record value\nhdr_record_value(\n    histogram,  // Histogram to record to\n    value)  // Value to record\n\n// Record value n times\nhdr_record_values(\n    histogram,  // Histogram to record to\n    value,  // Value to record\n    10)  // Record value 10 times\n\n// Record value with correction for co-ordinated omission.\nhdr_record_corrected_value(\n    histogram,  // Histogram to record to\n    value,  // Value to record\n    1000)  // Record with expected interval of 1000.\n\n// Print out the values of the histogram\nhdr_percentiles_print(\n    histogram,\n    stdout,  // File to write to\n    5,  // Granularity of printed values\n    1.0,  // Multiplier for results\n    CLASSIC);  // Format CLASSIC/CSV supported.\n```\n\n## More examples\n\nFor more detailed examples of recording and logging results look at the\n[hdr_decoder](examples/hdr_decoder.c)\nand [hiccup](examples/hiccup.c)\nexamples.  You ",
  "github_repo": "HdrHistogram/HdrHistogram_c",
  "github_stars": 277,
  "github_topics": [],
  "homepage": "https://github.com/HdrHistogram/HdrHistogram_c",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 54019,
  "installs_365d": 437972,
  "installs_90d": 223366,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "CC0-1.0 OR BSD-2-Clause",
  "llm_generated_at": "2026-06-20T23:42:50+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "hdrhistogram_c",
  "oldnames": [],
  "one_liner": "C library for recording and analyzing high-dynamic-range latency histograms with 64-bit counters.",
  "optional_dependencies": [],
  "rank_30d": 117,
  "rank_365d": 164,
  "rank_90d": 84,
  "raw_hash": "c3eb679b7357494a",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/h/hdrhistogram_c.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "0.11.9",
  "versioned_formulae": [],
  "why_use_this": "Essential for performance profiling and latency analysis in low-level C code; tracks microsecond-scale timings across wide ranges (nanoseconds to hours) with minimal overhead. Used as a dependency in observability and benchmarking tools that need precise histogram data without floating-point approximation."
}