Skip to content

Event-stream DeserializeFrames benchmarks still deserialize from string, not the span path production uses #673

Closed

Description

@Blind-Striker

Part of #661.

Lane: Runtime. Found by the independent review of RT-E5 slice 2 (#484).

What. The DeserializeFrames and DeserializeConcreteFrames rows in PromptEventStreamBenchmarks,
EventStreamBenchmarks and SessionLogStreamBenchmarks still deserialize each frame from a string. After slice 2,
production deserializes from the frame's UTF-8 span (FrameDispatch → JsonSerializer.Deserialize(ReadOnlySpan<byte>, JsonTypeInfo<T>)).

Why it matters for 1.0. Those rows no longer measure the production path, and the plan's split ("the subscription
minus materialization equals framing") is skewed. #502's numbers depend on that split being honest.

The fix. Those rows deserialize from the same UTF-8 bytes the reader hands over, with the same JsonTypeInfo, and
their before/after is reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performance

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions