Skip to content

feat(perf): Ziel-ID-zu-Benchmark-Mapping-Datei anlegen und als CI-Gate erzwingen (Issue #3 Maßnahme #7) - #4599

Merged
makr-code merged 2 commits into
developfrom
copilot/create-target-id-to-benchmark-mapping
Apr 13, 2026
Merged

makr-code merged 2 commits into
developfrom
copilot/create-target-id-to-benchmark-mapping

Conversation

Copilot AI commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

No machine-checkable link existed between Ziel-IDs in PERFORMANCE_EXPECTATIONS.md §1.2 and concrete benchmark functions, making coverage gaps invisible. This PR introduces the mapping file, a validator, and a CI gate that enforces completeness on every relevant change.

Changes

benchmarks/benchmark_target_mapping.json

  • 191 entries across 29 modules; 175 map directly to IDs in PERFORMANCE_EXPECTATIONS.md §1.2
  • Schema: { "version", "modules": { "<module>": { "<ZIEL-ID>": { "primary_benchmark", "file", "label" } } } }
  • Covers all documented modules: query, index, cache, analytics, timeseries, geo, graph, replication, sharding, transaction, llm, rag, search, temporal, api, auth, cdc, network, security, scheduler, ingestion, governance, observability, process_mining, voice, onnx_clip, prompt_engineering, ethics_ai, system_level

tools/verify_benchmark_mapping.py

Five hard checks (exit 1 on any failure):

  1. Mapping file loadable and schema-valid
  2. Every entry has primary_benchmark + file
  3. Referenced .cpp files exist under benchmarks/
  4. primary_benchmark symbol present in its source file (handles both BENCHMARK(BM_Foo) and fixture-style Fixture, Method forms)
  5. Every Ziel-ID extracted from PERFORMANCE_EXPECTATIONS.md tables is present in the mapping
perf_audit check 7a: PASS  (mapping file exists and is valid, 191 target IDs covered)
verify_benchmark_mapping: exit 0, 0 unmapped target IDs

.github/workflows/perf-expectations-audit.yml

  • Triggers on push/PR when mapping, benchmark sources, or PERFORMANCE_EXPECTATIONS.md change; also runs weekly
  • Runs verify_benchmark_mapping.py and fails the build (Check 7a) on any violation
  • Produces a full verification report in the GitHub Step Summary

Linked Issues

Closes #3

Type of Change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Refactoring (non-breaking)
  • Documentation
  • Breaking change (requires MAJOR version bump — see VERSIONING.md)
  • Security fix
  • Other:

Breaking Change Checklist

  • MAJOR version bump planned in VERSION and CMakeLists.txt
  • Migration guide added in docs/migration/
  • Announcement prepared for GitHub Discussions (≥ 2 weeks before release)
  • CHANGELOG ### Removed / ### Changed section updated

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • Benchmarks run (if performance-sensitive change)

python3 tools/verify_benchmark_mapping.py exits 0. All 5 checks pass locally.

📚 Research & Knowledge (wenn applicable)

  • Diese PR basiert auf wissenschaftlichen Paper(s) oder Best Practices?
    • Falls JA: Research-Dateien in /docs/research/ angelegt?
    • Falls JA: Im Modul-README unter "Wissenschaftliche Grundlagen" verlinkt?
    • Falls JA: In /docs/research/implementation_influence/ eingetragen?

Relevante Quellen:

  • Paper:
  • Best Practice:
  • Architecture Decision:

Checklist

  • Code follows project style guidelines (clang-format / clang-tidy)
  • Self-review completed
  • Documentation updated (if needed)
  • CHANGELOG.md updated under [Unreleased]
  • No new warnings introduced
  • Security-sensitive paths reviewed by security maintainer (if applicable)

@makr-code
makr-code marked this pull request as ready for review April 13, 2026 07:49
@makr-code
makr-code self-requested a review as a code owner April 13, 2026 07:49
@makr-code
makr-code merged commit 5d4629a into develop Apr 13, 2026
12 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants