mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 17:23:21 +00:00
Measurement harnesses for the two remaining relayBench gaps, isolating each cost so a fix can be judged on the delta: - IngestLatencyBenchmark: times single-event submit→onComplete through the group-commit IngestQueue vs a direct batchInsert. The delta is the pipeline's coroutine-handoff overhead — the receipt→queryable latency the 1M run measured geode losing (4.68ms vs strfry 2.32ms). - NegMsgSerializationBenchmark: times the NEG-MSG wire path (Hex.encode → MessageKSerializer JsonElement tree → UTF-8) against a direct StringBuilder build, asserting byte-identical output. Isolates the ~40% serialization slice of the server reconcile the JFR flagged. Both compile and are self-contained; results + fixes to follow. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EZeWww5TJnzBZKPoc6mvU