Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic performance benchmarks for binary parsing #491

Merged
merged 1 commit into from
May 24, 2023

Conversation

timostamm
Copy link
Member

@timostamm timostamm commented May 24, 2023

This adds a simple suite of performance benchmarks for parsing from the binary format.

make perf outputs:

### Parsing binary
large google.protobuf.FileDescriptorSet (1027010 bytes) x 29.20 ops/sec ±6.57% (51 runs sampled)
tiny docs.User (4 bytes) x 2,482,014 ops/sec ±0.70% (93 runs sampled)
scalar values (102 bytes) x 528,864 ops/sec ±0.16% (99 runs sampled)
repeated scalar fields (195 bytes) x 268,070 ops/sec ±0.16% (97 runs sampled)
map with scalar keys and values (186 bytes) x 173,328 ops/sec ±0.08% (100 runs sampled)
repeated field with 1000 messages (2000 bytes) x 2,798 ops/sec ±0.12% (101 runs sampled)
map field with 1000 messages (8890 bytes) x 1,746 ops/sec ±0.13% (99 runs sampled)

@timostamm timostamm requested a review from smaye81 May 24, 2023 13:13
@timostamm timostamm merged commit 9272859 into main May 24, 2023
@timostamm timostamm deleted the tstamm/add-basic-performance-benchmarks branch May 24, 2023 13:56
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