bench: add reproducible foundation benchmark harness and record P0 baseline (X-BASE-05)

This commit is contained in:
faumaray committed 2026-11-24 02:35:43 +03:00
1 parent c64fa93373
commit 196ed251f9
7 files changed
+571 -30

No files matched your search

+35 -30
View File
@@ -1,44 +1,49 @@
# Workflow state
Updated: 2026-11-24.
Repository: VoidLibrary; branch `main`; baseline HEAD
`f1f9ba375b22abf1adcc7c550ec21ac20895c0a4`.
Repository: VoidLibrary; active branch `feat/roadmap-p0-p1-foundations` (from `main`
at `f1f9ba375b22abf1adcc7c550ec21ac20895c0a4`).
## Completed objective
The approved multi-file expansion planning package is authored and verified: 54 roadmap
documents with 300 planned feature tasks. Application implementation, release, and
deployment are not part of this documentation delivery.
1. Approved multi-file expansion planning package committed (`faa8a51`): 54 roadmap
documents with 300 planned feature tasks and workflow records.
2. **Wave 1 / P0 Reliable Baseline (`X-BASE-01`..`X-BASE-05`) implemented & verified**:
- `X-BASE-01`: Replaced hardcoded `/bin/echo`, `/bin/cat`, and `seq` in process tests
with standard-library `VoidProcessHelper`.
- `X-BASE-02`: Marked FetchContent Boost 1.84 as `SYSTEM` so `-DVOID_WARNINGS_AS_ERRORS=ON`
succeeds cleanly on GCC 16.2.0 (`-std=c++26`).
- `X-BASE-03`: Transferred `<Void/Log/Log.hpp>` header ownership to `LogState`,
reconciled acyclic `INTERNAL_DEPS` across 10 `module.cmake` files, added
`Void::FunctionalCoreFormatting`, propagated `-freflection` on `INTERFACE` modules,
filtered `VoidTests` by `ACTIVE_MODULES`, and verified minimal, `System`-only,
embedded `add_subdirectory`, static, and relocated installed consumers.
- `X-BASE-04`: Added `cmake/Capabilities.cmake` (`VOID_HAS_STD_EXPECTED`,
`VOID_HAS_CXX26_REFLECTION`, sanitizer probes, `ASan`+`TSan` mutual exclusion) and
`VOID_ENABLE_TSAN`; verified Debug ASan+UBSan+`-Werror` full suite and TSan subset.
- `X-BASE-05`: Added `VOID_ENABLE_BENCHMARKS` (`benchmarks/FoundationBench.cpp`) and
`tests/corpus/README.md`; recorded P0 foundation benchmark manifest.
## Baseline and authorization
The tracked tree was clean before authoring. Existing unrelated untracked files were
left untouched. The user approved the proposal with “Implement the plan.” Confirmed
requirements and decisions are recorded in the roadmap and DECISIONS.md.
User decisions D-027..D-030 authorize roadmap-order execution on branch
`feat/roadmap-p0-p1-foundations`, per-task workflow specs in `docs/agent-workflow/tasks/`,
and Wave A+B API compatibility while leaving local untracked files untouched.
Prior read-only exploration, architectural planning, primary-source research, and
independent preflight are complete. Preflight verdict: READY, with one minor wording
correction applied. Current stage: DOCUMENTATION_COMPLETE. Independent reviews A and B
are READY after all four P2 findings were corrected and rechecked. No feature
implementation has started.
## Verification already observed (P0)
## Verification already observed
- GCC 16.2.0, CMake 4.4.4; separate all-module RelWithDebInfo configure/build succeeded.
- VoidTests: 1,250 discovered; 1,245 passed, 2 failed, 3 skipped.
- The failures hard-code absent `/bin/echo` and `/bin/cat` on this NixOS host.
- Installed component-consumer test passed.
- Warnings-as-errors configuration failed in pinned Boost 1.84 headers.
- No sanitizer, cross-platform, performance, or new-feature verification is claimed.
- Full RelWithDebInfo + `-DVOID_WARNINGS_AS_ERRORS=ON` via
`dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium`: build passed (exit 0);
`ctest` 2/2 passed (`VoidTests` 1,249 passed / 3 intentional skips / 0 failed;
`VoidInstalledComponentConsumers` including relocated `Foundation` and `External` passed).
- Minimal foundation subset, `System` without `Log` (`Log.hpp` installed), embedded
`add_subdirectory`, and static (`BUILD_SHARED_LIBS=OFF`) builds/tests all passed.
- Full Debug ASan+UBSan+`-Werror`: `VoidTests` 1,249 passed, 3 skipped, 0 failed, 0 leaks/UB.
- Debug TSan subset (`Async;Time;Core;Functional;Testing`): 389 passed, 2 skipped, 0 failed.
- `VoidFoundationBench` (RelWithDebInfo, 5 warmup, 20 reps, 10,000 ops/rep): 12 workloads +
empty-harness baseline recorded to `/tmp/void-p0-bench/baseline.json`.
## Ownership and next step
Root owns shared contracts, master index, delivery/validation plans, workflow records,
integration, and review. Separate documentation workers receive exclusive area files.
See TASKS.md for durable assignments; live agent processes are not persistent state.
Coverage/link/task checks and direct Markdown checks pass; final evidence is in
VERIFICATION.md. Documentation workers/reviewers are closed. All future feature tasks
remain PLANNED. Subsequent implementation starts with a bounded task selected from
DELIVERY.md and its area plan after reconciling the current source state. Nothing has
been staged, committed, pushed or deployed by this delivery.
Proceeding to Wave 2 (P1 Gate 1): `Core` (`M-CORE-02`, `M-CORE-03`), `Functional`
(`M-FUNCTIONAL-02`), `Time` (`M-TIME-02`), `Memory` (`S-MEMORY-02..04`), and `Math` (`M-MATH-02`).
+10
View File
@@ -13,6 +13,16 @@ These tasks author plans. Future feature task IDs inside those plans remain plan
| T-DOC-REVIEW-A | Fresh independent shared/foundation review | astra_reviewer | READY | All 21 documents reviewed; P2 dependency correction and current/proposed Update wording rechecked; no remaining actionable findings |
| T-DOC-REVIEW-B | Fresh independent runtime/storage/network/platform review | astra_reviewer | READY | All 33 area plans reviewed; three P2 corrections and affected acceptance rows rechecked; no remaining actionable findings |
## Wave 1 — P0 Baseline Implementation (`feat/roadmap-p0-p1-foundations`)
| ID | Deliverable | Spec | State | Verification summary |
| --- | --- | --- | --- | --- |
| X-BASE-01 | Controlled `VoidProcessHelper` replacing `/bin/echo`, `/bin/cat`, `seq` | [X-BASE-01](tasks/X-BASE-01.md) | VERIFIED | `Process`/`ProcessStream` 13/13; full `VoidTests` 1,249 passed, 3 skipped |
| X-BASE-02 | Boost 1.84 FetchContent `SYSTEM` isolation for `-Werror` | [X-BASE-02](tasks/X-BASE-02.md) | VERIFIED | Full `-DVOID_WARNINGS_AS_ERRORS=ON` build exit 0; `VoidTests` 1,249 passed |
| X-BASE-03 | `Log.hpp` in `LogState`, acyclic closures, `FunctionalCoreFormatting`, `-freflection` propagation, subset/relocated/static/embedded checks | [X-BASE-03](tasks/X-BASE-03.md) | VERIFIED | Full `ctest` 2/2 passed (`VoidTests` + relocated consumers), plus minimal, `System`-only, embedded, static passed |
| X-BASE-04 | `cmake/Capabilities.cmake`, reflection/`expected`/sanitizer probes, `VOID_ENABLE_TSAN` | [X-BASE-04](tasks/X-BASE-04.md) | VERIFIED | ASan+UBSan+`-Werror` full `VoidTests` 1,249 passed (0 leaks/UB); TSan subset 389 passed |
| X-BASE-05 | `benchmarks/FoundationBench.cpp` (`VOID_ENABLE_BENCHMARKS`) + `tests/corpus/README.md` | [X-BASE-05](tasks/X-BASE-05.md) | VERIFIED | RelWithDebInfo `-Werror` build passed; 12 workloads + harness JSON baseline validated |
All workers share the checkout and have disjoint file ownership defined in their
persisted task specifications. Root owns all cross-cutting files and resolves contract
changes. No worker owns application code, build files, existing docs/short-url.md, or Git
+14
View File
@@ -143,3 +143,17 @@ No C++ source or build-system modification is part of this delivery. Application
are not rerun solely for Markdown authoring. Sanitizers, fuzzing, benchmarks, alternative
platforms, NEW APIs, native storage and distributed scenarios remain unrun/planned.
Written designs and proposed commands do not establish implementation or release readiness.
## Wave 1 / P0 Implementation Verification (2026-11-24)
Branch: `feat/roadmap-p0-p1-foundations`. Toolchain via `dev cpp-gcc`: GCC 16.2.0, CMake 4.4.4, Ninja 1.13.2.
| Task | Command & scope | Observed outcome |
| --- | --- | --- |
| X-BASE-01 | `/tmp/void-p0-base/tests/VoidTests --filter "Process*"` and full `/tmp/void-p0-base/tests/VoidTests` | `Process`+`ProcessStream` 13/13 passed; full `VoidTests` 1,249 passed, 3 intentional skips, 0 failed (`340acae`) |
| X-BASE-02 | Full RelWithDebInfo `-DVOID_WARNINGS_AS_ERRORS=ON` build & `VoidTests` in `/tmp/void-p0-werror` | Exit 0 (all 691 Ninja targets clean); `VoidTests` 1,249 passed, 3 skipped, 0 failed (`e385746`) |
| X-BASE-03 | `dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium -c ctest --test-dir /tmp/void-p0-closures --output-on-failure --timeout 120` | 2/2 passed: `VoidTests` + `VoidInstalledComponentConsumers` (`Binary`, `Foundation`, `Audited`, `External`, `RelocatedFoundation`, `RelocatedExternal`) (`cd6fc7e`) |
| X-BASE-03 | Minimal (`Time;Math;Text;Binary;Functional;FunctionalCoreFormatting;Testing`), `System;Testing`, `tests/package/Embedded`, static (`BUILD_SHARED_LIBS=OFF`) | All 4 passed; `System` without `Log` installs `include/Void/Log/Log.hpp` and passes `Process*` |
| X-BASE-04 | `dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium -c bash -lc 'ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 /tmp/void-p0-asan/tests/VoidTests'` | 1,249 passed, 3 skipped, 0 failed, 0 ASan/UBSan/LSan errors (`c64fa93`) |
| X-BASE-04 | `dev cpp-gcc -c /tmp/void-p0-tsan/tests/VoidTests` (`Async;Time;Core;Functional;Testing`, Debug, `-DVOID_ENABLE_TSAN=ON -DVOID_WARNINGS_AS_ERRORS=ON`) | Capabilities: `reflection=yes, expected=yes, sanitizers=TSan`; 389 passed, 2 skipped, 0 failed, 0 TSan races |
| X-BASE-05 | `dev cpp-gcc -c /tmp/void-p0-bench/benchmarks/VoidFoundationBench --json /tmp/void-p0-bench/baseline.json` (RelWithDebInfo, `-DVOID_WARNINGS_AS_ERRORS=ON`, 5 warmup, 20 reps, 10k ops/rep) | Exit 0; JSON schema_version 1 validated. Key baselines: `harness_empty_loop` 0.38ns, `core_uuid_parse_hyphenated` 88.76ns, `core_uuid_to_string` 498.11ns, `data_json_parse_small_object` 295.46ns |