Performance & real-time
Serialization benchmark
7 formats, Java server to browser, measured end to end.
Story
Calendar UIs move a lot of event data from the server to the browser. Picking a wire format by reputation is easy; knowing its real cost is not. This tool measures the full round trip, from Java objects on the server to parsed data in the browser.
Each run captures serialization time on the server (ns), payload size (bytes), parse time in the browser (ms) and total latency (ms), on deterministic datasets of 1,000, 10,000 and 50,000 events.
How it works
- Text: org.json and Jackson streaming, parsed with
JSON.parse(). - Binary, schema-less: FlexBuffers, MessagePack and CBOR.
- Binary, schema-based: FlatBuffers and Apache Arrow (columnar, zero-copy).
- A serializer registry on an embedded Tomcat + Struts server; a React client with format-specific parsers.
- Playwright automates whole benchmark runs so results are repeatable.