🍺 BREW Explorer

← all formulae

bench

brew install bench v1.0.13 BSD-3-Clause

Command-line benchmark tool

8
30-day installs · #9212
31
90-day · #8555
246
365-day · #6844
912
★ GitHub stars · updated 11mo ago

Runtime dependencies

gmp

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "cabal-install",
    "ghc"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "gmp"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Command-line benchmark tool",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:49+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "bench",
  "github_default_branch": "main",
  "github_last_commit_at": "2025-09-02T17:27:37Z",
  "github_readme_excerpt": "# Bench v1.0.12\n\nThis project provides the `bench` command-line tool, which is a more powerful\nalternative to the `time` command.  Use `bench` to benchmark a command using\nHaskell\u0027s `criterion` library.\n\nKey features:\n\n* Repeated runs\n* Detailed statistical output\n* Gorgeous HTML output (via the `--output` flag)\n  ([Example](http://www.serpentine.com/criterion/fibber.html))\n* Also supports CSV or templated output\n\n## Quick Start\n\nYou can install `bench` on macOS via [Homebrew](http://braumeister.org/formula/bench):\n\n```bash\n$ brew install bench\n```\n\non Fedora or RedHat-based distros via DNF:\n\n```bash\n$ dnf install bench\n```\n\n... or you can install `bench` using Haskell\u0027s `stack` tool.  To do that, first\ndownload the [Haskell toolchain](https://www.haskell.org/downloads#minimal),\nwhich provides the `stack` tool, then run:\n\n```bash\n$ stack setup\n$ stack install bench\n```\n\n`stack install` will install `bench` to `~/.local/bin` or something similar.\nMake sure that the installation directory is on your executable search path\nbefore running `bench`.  `stack` will remind you to do this if you forget.\n\nAnother alternative is to use [Nix package manager](https://nixos.org/nix/). After its installation just execute:\n\n```$ nix-env -i bench```\n\nOnce you\u0027ve installed `bench` (either by download or installation via `stack` or Nix),\nyou can begin benchmarking programs:\n\n```bash\n$ bench \u0027sleep 1\u0027  # Don\u0027t forget to quote the command line\nbenchmarking sleep 1\ntime                 1.003 s    (1.002 s .. 1.003 s)\n                     1.000 R\u00b2   (1.000 R\u00b2 .. 1.000 R\u00b2)\nmean                 1.003 s    (1.003 s .. 1.003 s)\nstd dev              92.92 \u03bcs   (0.0 s .. 101.8 \u03bcs)\nvariance introduced by outliers: 19% (moderately inflated)\n\n$ bench true\nbenchmarking true\ntime                 410.3 \u03bcs   (382.3 \u03bcs .. 443.3 \u03bcs)\n                     0.974 R\u00b2   (0.961 R\u00b2 .. 0.987 R\u00b2)\nmean                 420.7 \u03bcs   (406.8 \u03bcs .. 435.7 \u03bcs)\nstd dev              47.69 \u03bcs   (40.09 \u03bcs .. 57.91 \u03bcs)\nvariance ",
  "github_repo": "Gabriella439/bench",
  "github_stars": 912,
  "github_topics": [],
  "homepage": "https://github.com/Gabriella439/bench",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 8,
  "installs_365d": 246,
  "installs_90d": 31,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "bench",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 9212,
  "rank_365d": 6844,
  "rank_90d": 8555,
  "raw_hash": "e52ba0fc64ed8b6d",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/bench.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "libffi"
  ],
  "version_head": "HEAD",
  "version_stable": "1.0.13",
  "versioned_formulae": [],
  "why_use_this": null
}