Skip to content

Add baseline_rw benchmark#177

Merged
alecthomas merged 2 commits into
alecthomas:masterfrom
matheusd:baseline_rw
Jun 12, 2025
Merged

Add baseline_rw benchmark#177
alecthomas merged 2 commits into
alecthomas:masterfrom
matheusd:baseline_rw

Conversation

@matheusd

Copy link
Copy Markdown
Contributor

This variant is meant to demonstrate and generate a baseline for
serializers that can marshal/unmarshal to/from standard io Reader and
Writer intefaces.

While the decision on reusing auxiliary buffers is arbitrary, it is
assumed that writing native types (uint64, etc) can be easily done by
any Reader/Writer implementation itself (or their callers).

The ultimate goal for this baseline test is as a benchmark against other
implementations that offer this method of serialization, strictly
measuring only the overhead of going through the io interfaces.

Both safe and unsafe+reuse implementations are provided.

matheusd added 2 commits June 12, 2025 09:32
This variant is meant to demonstrate and generate a baseline for
serializers that can marshal/unmarshal to/from standard io Reader and
Writer intefaces.

While the decision on reusing auxiliary buffers is arbitrary, it is
assumed that writing native types (uint64, etc) can be easily done by
any Reader/Writer implementation itself (or their callers).

The ultimate goal for this baseline test is as a benchmark against other
implementations that offer this method of serialization, strictly
measuring only the overhead of going through the io interfaces.

Both safe and unsafe+reuse implementations are provided.
@alecthomas
alecthomas merged commit bce37a8 into alecthomas:master Jun 12, 2025
2 checks passed
@alecthomas

Copy link
Copy Markdown
Owner

Nice

@matheusd
matheusd deleted the baseline_rw branch June 13, 2025 09:58
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.

2 participants