{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-benchmarking",
  "id": "benchmarking",
  "kind": "activity",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-performance-core",
    "json": "https://banes-lab.com/json/records/layer/performance-core",
    "label": "Performance Core",
    "markdown": "https://banes-lab.com/records/layer/performance-core.md",
    "ref": "layer:performance-core"
  },
  "name": "Benchmarking",
  "ref": "architecture:benchmarking",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-repeatable-test-environment",
          "json": "https://banes-lab.com/json/records/lexicon/repeatable-test-environment",
          "label": "Repeatable Test Environment",
          "markdown": "https://banes-lab.com/records/lexicon/repeatable-test-environment.md",
          "ref": "lexicon:repeatable-test-environment"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-reproducibility",
          "json": "https://banes-lab.com/json/records/architecture/reproducibility",
          "label": "Reproducibility",
          "markdown": "https://banes-lab.com/records/architecture/reproducibility.md",
          "ref": "architecture:reproducibility"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-performance-engineering",
          "json": "https://banes-lab.com/json/records/architecture/performance-engineering",
          "label": "Performance Engineering",
          "markdown": "https://banes-lab.com/records/architecture/performance-engineering.md",
          "ref": "architecture:performance-engineering"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-regression-detection",
          "json": "https://banes-lab.com/json/records/lexicon/regression-detection",
          "label": "Regression Detection",
          "markdown": "https://banes-lab.com/records/lexicon/regression-detection.md",
          "ref": "lexicon:regression-detection"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-anecdotal-timing",
          "json": "https://banes-lab.com/json/records/lexicon/anecdotal-timing",
          "label": "Anecdotal Timing",
          "markdown": "https://banes-lab.com/records/lexicon/anecdotal-timing.md",
          "ref": "lexicon:anecdotal-timing"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-environment-drift",
          "json": "https://banes-lab.com/json/records/lexicon/environment-drift",
          "label": "Environment Drift",
          "markdown": "https://banes-lab.com/records/lexicon/environment-drift.md",
          "ref": "lexicon:environment-drift"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-benchmarking-environment-drift",
          "json": "https://banes-lab.com/json/records/tension/benchmarking-environment-drift",
          "label": "Benchmarking / Environment Drift",
          "markdown": "https://banes-lab.com/records/tension/benchmarking-environment-drift.md",
          "ref": "tension:benchmarking-environment-drift"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-anecdotal-performance-claims",
          "json": "https://banes-lab.com/json/records/lexicon/anecdotal-performance-claims",
          "label": "Anecdotal Performance Claims",
          "markdown": "https://banes-lab.com/records/lexicon/anecdotal-performance-claims.md",
          "ref": "lexicon:anecdotal-performance-claims"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-immutable-infrastructure",
          "json": "https://banes-lab.com/json/records/architecture/immutable-infrastructure",
          "label": "Immutable Infrastructure",
          "markdown": "https://banes-lab.com/records/architecture/immutable-infrastructure.md",
          "ref": "architecture:immutable-infrastructure"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-recommended",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-recommended",
          "label": "recommended",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-recommended.md",
          "ref": "vocabulary:severity-recommended"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/records/architecture-category/scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/records/architecture-category/scalability-performance-optimization.md",
          "ref": "architecture-category:scalability-performance-optimization"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-correctness-determinism-verification",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-correctness-determinism-verification",
          "label": "Correctness / Determinism / Verification",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-correctness-determinism-verification.md",
          "ref": "chapter:/ontology#architecture-category-correctness-determinism-verification"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-scalability-performance-optimization.md",
          "ref": "chapter:/ontology#architecture-category-scalability-performance-optimization"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-scalability-performance-optimization",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-scalability-performance-optimization",
          "label": "Scalability / Performance / Optimization",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-scalability-performance-optimization.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-scalability-performance-optimization"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-resolutions",
          "json": "https://banes-lab.com/json/ontology/schema/the-resolutions",
          "label": "The resolutions",
          "markdown": "https://banes-lab.com/ontology/schema/the-resolutions.md",
          "ref": "chapter:/ontology/schema#the-resolutions"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "summary": "The activity of timing a fixed workload repeatedly in a controlled environment, so results can be compared across changes.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-bottleneck-analysis",
      "json": "https://banes-lab.com/json/records/architecture/bottleneck-analysis",
      "label": "Bottleneck Analysis",
      "markdown": "https://banes-lab.com/records/architecture/bottleneck-analysis.md",
      "ref": "architecture:bottleneck-analysis"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-profiling",
      "json": "https://banes-lab.com/json/records/architecture/profiling",
      "label": "Profiling",
      "markdown": "https://banes-lab.com/records/architecture/profiling.md",
      "ref": "architecture:profiling"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [],
  "exemplar": {
    "after": "benchmark(\"foo.parse\", {\n  warmup: 100,\n  iterations: 10_000,\n  run: () => parseFoo(fixture),\n});",
    "before": "const start = clock.now();\nrunFoo();\nreport(clock.now() - start);",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "function",
    "service",
    "system"
  ],
  "severity": "recommended"
}
