bench: add protobuf storage overhead benchmark - #151
Merged
Conversation
new benchmark comparing PROTO.* commands against raw SET/GET: - bench-proto.sh: shell wrapper (requires --features protobuf, protoc) - bench-proto.py: python harness using redis-py - bench/proto/user.proto: simple test schema (name/age/email) measures: - PROTO.SET vs raw SET (same data, validated vs raw bytes) - PROTO.GET vs raw GET - PROTO.GETFIELD single-field read throughput - PROTO.SETFIELD single-field update throughput - overhead percentage for schema validation proto encoding is hand-rolled in python to avoid requiring the protobuf library at benchmark runtime. schema compilation uses protoc --descriptor_set_out at startup.
kacy
added a commit
that referenced
this pull request
Feb 19, 2026
new benchmark comparing PROTO.* commands against raw SET/GET: - bench-proto.sh: shell wrapper (requires --features protobuf, protoc) - bench-proto.py: python harness using redis-py - bench/proto/user.proto: simple test schema (name/age/email) measures: - PROTO.SET vs raw SET (same data, validated vs raw bytes) - PROTO.GET vs raw GET - PROTO.GETFIELD single-field read throughput - PROTO.SETFIELD single-field update throughput - overhead percentage for schema validation proto encoding is hand-rolled in python to avoid requiring the protobuf library at benchmark runtime. schema compilation uses protoc --descriptor_set_out at startup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
bench-proto.sh,bench-proto.py, andbench/proto/user.protoPROTO.SETvs rawSETandPROTO.GETvs rawGETto measure schema validation overheadPROTO.GETFIELD(single field read) andPROTO.SETFIELD(single field update)--quickflag for 10k-request sanity checkswhat was tested
design considerations
protobufpip dependency but only supports the simple User schema. the full protobuf library would be needed for complex nested messages.protocis required at runtime for--descriptor_set_out— this is consistent with how ember's PROTO.REGISTER works (expects compiled descriptors, not raw .proto text)