Skip to content

perf: productive OLAP analytics benchmarks + standardized LLM artifact setup (Maßnahmen #2 & #6) - #4598

Merged
makr-code merged 1 commit into
developfrom
copilot/add-prod-olap-cases
Apr 13, 2026
Merged

makr-code merged 1 commit into
developfrom
copilot/add-prod-olap-cases

Conversation

Copilot AI commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Addresses two CI-audit WARNs from PERFORMANCE_EXPECTATIONS.md §1.4: zero productive OLAP benchmark registrations (check 2b) and missing LLM/LoRA artifact scaffolding (check 6a).

Description

Maßnahme #2 — bench_olap_analytics.cpp: disabled stub → 4 productive cases

Replaces the single BM_OLAP_Disabled no-op with four self-contained analytics benchmarks using in-memory data (consistent with bench_olap_performance.cpp patterns):

Case Simulates Sizes
BM_OLAP_GroupBy_Int GROUP BY region_id → SUM + COUNT 10K / 100K / 1M
BM_OLAP_WindowFunction SUM … OVER (ROWS BETWEEN 99 PRECEDING AND CURRENT ROW) 10K / 100K / 1M
BM_OLAP_MultiJoin 3-table hash-join (orders × customers × products) + GROUP BY 10K / 100K
BM_OLAP_TopN_Sorted GROUP BY product_id … ORDER BY total DESC LIMIT 10 (min-heap) 10K / 100K / 1M

BM_OLAP_Disabled is fully removed. CI-audit check 2b (productive_count >= 4) will now pass.

Also adds benchmarks/baselines/olap/bench_olap_analytics_targeted.json as the seed baseline artifact, pre-populated with per-case throughput targets.

Maßnahme #6 — Standardized LLM/LoRA artifact setup

benchmarks/llm_bench_config.json — single source of truth for model paths, VRAM floors, and benchmark profiles:

  • ci_stub: TinyLlama Q4 stub, no GPU, batch [1,4]
  • gpu_full: Llama-3 8B Q4, ≥8 GB VRAM, batch [1,4,16,32]

scripts/prepare_llm_bench_artifacts.sh — idempotent setup script:

# CI: stub model only, no network dependency beyond initial download
./scripts/prepare_llm_bench_artifacts.sh --stub-only

# Local full run with real models
export THEMIS_MODEL_DIR=/data/models/themis
./scripts/prepare_llm_bench_artifacts.sh
  • Auto-falls-back to stub when real model absent
  • Generates a minimal rank-8 LoRA stub binary for CI
  • Exports THEMIS_MODEL_DIR + THEMIS_LLM_STUB_MODELS; exits 1 if no artifact can be resolved

docs/BENCHMARK_RUNBOOK.md — new ## 🤖 LLM/LoRA Model Setup section covering env vars, CMake flag THEMIS_LLM_STUB_MODELS, manual placement, and troubleshooting table.

Linked Issues

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)

📚 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:45
@makr-code
makr-code self-requested a review as a code owner April 13, 2026 07:45
@makr-code
makr-code merged commit c6eafb2 into develop Apr 13, 2026
10 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