Skip to content

Competitive benchmark suite + benchmark-surfaced engine perf fixes (#423) - #424

Merged
nockawa merged 1 commit into
mainfrom
feature/423-competitive-benchmark
Jul 1, 2026
Merged

nockawa merged 1 commit into
mainfrom
feature/423-competitive-benchmark

Conversation

@nockawa

@nockawa nockawa commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Delivers Feature #423 — a standalone competitive-benchmark harness comparing Typhon against same-category embedded engines (SQLite, RocksDB, LMDB, FASTER, DuckDB), plus the small engine perf improvements surfaced on this branch. Excludes doc/feature-set/ (separate effort).

Contents

  • New test/Typhon.CompetitiveBenchmark — YCSB A-series (point / mixed / RMW / amplification / ordered scan), analytical B7 (SUM vs DuckDB, threading-controlled) + b7x scaling diagnostic, and Typhon-unique C-series (storage-mode ladder, MVCC readers+writers, cross-component commit, durable commit, spatial, crash recovery, ECS iteration). Single-CCD-pinned, matched-guarantee framing.
  • Engine perf improvements:
    • PagedMMF — gate MemPageCacheHit/Miss stat counters behind TelemetryConfig.ProfilerActive (JIT-folds to a no-op when off).
    • ChunkAccessor — warm window 16 → 32 slots (hot index/directory pages stay slot-resident, no-atomics fast path).
    • EcsQuery — copy-free CountEntries/AnyEntry for Count/Any terminals (~10–13% on ExactQuery/Polymorphic/Any).
    • TraceEventGenerator — gate-before-timestamp fix (EnterExit 19 → 3 ns).

Testing

Full engine suite: 3956+ pass. The handful of failures are pre-existing order-dependent flakes, not regressions from this change:

All of them pass in isolation, and none touch the files changed here. Two full-suite runs disagreed on which/how many failed (3 vs 5) — the signature of test-order flakiness, not a deterministic regression.

Notes

Not merged — handed off for review + merge per request.

Closes #423

🤖 Generated with Claude Code

)

New test/Typhon.CompetitiveBenchmark project comparing Typhon vs SQLite,
RocksDB, LMDB, FASTER, and DuckDB across YCSB A-series, analytical B7, and
Typhon-unique C-series scenarios (single-CCD-pinned, matched-guarantee).

Engine perf improvements surfaced on this branch:
- PagedMMF: gate MemPageCacheHit/Miss stat counters behind
  TelemetryConfig.ProfilerActive (JIT-folds to a no-op when the profiler
  is off) -- an always-on stat was taxing the hottest read path.
- ChunkAccessor: warm window 16 -> 32 slots so hot index/directory pages
  stay slot-resident and hit the no-atomics fast path.
- EcsQuery: copy-free CountEntries/AnyEntry for the Count/Any terminals
  (~10-13% on ExactQuery/Polymorphic/Any).
- TraceEventGenerator: gate-before-timestamp fix (EnterExit 19 -> 3 ns).

Excludes doc/feature-set/ (separate effort).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LWhJqY8FJznYVBjL6uPas
nockawa added a commit that referenced this pull request Jul 1, 2026
…f the gate build

merge-gate: drop Typhon.slnx from the engine + workbench change-filters. A
.slnx-only change (e.g. adding a benchmark project) no longer drags in the
engine/workbench suites -- the real source-dir triggers (src/Typhon.Engine/**,
test/Typhon.Engine.Tests/**, tools/Typhon.Workbench/**) cover the cases that
matter. This is why PR #424 -- which only added a project to the .slnx -- ran
the Workbench suite and surfaced 7 pre-existing Linux-path / storage-taxonomy
failures unrelated to it.

ci.sky.yaml: build only the two test projects the gate runs instead of the whole
solution. This excludes the benchmark projects (Typhon.Benchmark,
Typhon.CompetitiveBenchmark) from the gate build and skips restoring their heavy
native deps (RocksDB / LMDB / FASTER / DuckDB / ...); they only ever run via the
opt-in benchmark.yml, never the merge gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016LWhJqY8FJznYVBjL6uPas
@nockawa
nockawa merged commit eb20d0a into main Jul 1, 2026
10 of 15 checks passed
@nockawa
nockawa deleted the feature/423-competitive-benchmark branch July 1, 2026 17:43
nockawa added a commit that referenced this pull request Jul 1, 2026
* CI: point workflows at the log2n-io org (post-migration)

merge-gate: check out the TLA specs from Log2n-io/Typhon-Claude. The old nockawa/typhon-claude name only resolved via GitHub's redirect, which does not carry the ssh deploy key -- so the tla job would fail auth on any Durability PR.

project-sync: retarget the org project #1. Every job hardcoded the defunct user board (nockawa/projects/7) node/field/option IDs, so issue+PR events synced to a dead board instead of https://github.com/orgs/Log2n-io/projects/1.
Updated PROJECT_ID / STATUS_FIELD_ID / option IDs; the removed 'Review' status maps to In Progress (org #1 has only Todo / In Progress / Done).

Note: project-sync uses the PROJECT_TOKEN secret -- verify it is an org-scoped PAT with project write access, or the GraphQL mutations 403.

* CI: stop .slnx changes triggering heavy suites; keep benchmarks out of the gate build

merge-gate: drop Typhon.slnx from the engine + workbench change-filters. A .slnx-only change (e.g. adding a benchmark project) no longer drags in the engine/workbench suites -- the real source-dir triggers  src/Typhon.Engine/**, test/Typhon.Engine.Tests/**, tools/Typhon.Workbench/**) cover the cases that matter. This is why PR #424 -- which only added a project to the .slnx -- ran the Workbench suite and surfaced 7 pre-existing Linux-path / storage-taxonomy failures unrelated to it.

ci.sky.yaml: build only the two test projects the gate runs instead of the whole solution. This excludes the benchmark projects (Typhon.Benchmark, Typhon.CompetitiveBenchmark) from the gate build and skips restoring their heavy native deps (RocksDB / LMDB / FASTER / DuckDB / ...); they only ever run via the opt-in benchmark.yml, never the merge gate.
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.

Competitive benchmark suite + benchmark-surfaced engine perf fixes

1 participant