{
  "slug": "hyperfine-env-sets-variables-without-an-intermediate-shell-729eb753717b",
  "title": "hyperfine --env sets variables without an intermediate shell",
  "tools": [
    "hyperfine"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-07T21:13:36.000Z",
  "announced_at": "2026-10-07T21:13:36.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When benchmarking a repository command across thread counts, use `-P` to vary the `threads` parameter and `--env` to set `OMP_NUM_THREADS` for each value. The benchmark command runs without an intermediate shell by default.",
    "examples": [
      "hyperfine -P threads 1 8 --env 'OMP_NUM_THREADS={threads}' '<repository-command>'"
    ],
    "gotchas": [
      "Version: v2.0.0",
      "-P / --parameter-scan <name> <min> <max> (required): Varies one numeric parameter across the given range; `{name}` is replaced in the benchmark command and `--env` values.",
      "--env <assignments> (required): Sets environment variables for benchmark commands and setup, prepare, conclude, and cleanup commands. Assignments are space-separated; quoting is supported, but shell expansion is not.",
      "<repository-command> (required): The executable and its arguments to benchmark; commands run directly by default, without an intermediate shell."
    ]
  },
  "why_it_matters": "Benchmark a repository command under different thread counts.",
  "sources": [
    "https://github.com/sharkdp/hyperfine/releases/tag/v2.0.0",
    "https://github.com/sharkdp/hyperfine/blob/v2.0.0/README.md"
  ],
  "rank": 0.96029,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-228b6cde5f7e5eb2-1:gate",
    "evidence_hash": "e97e7ac8f2a74688489ab9335a1d33f37de316dc351233c75dd828fe560592bd"
  },
  "review": {
    "draft_hash": "6edc90a8e33b94b8eadde1a35fa9edb710e764d17b859dc3274ca63e5f0f13a5",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T21:13:36.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
