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

(#12) Switch from Beefcake to Protobuf #39

Merged
merged 1 commit into from
Jun 25, 2022
Merged

(#12) Switch from Beefcake to Protobuf #39

merged 1 commit into from
Jun 25, 2022

Conversation

smortex
Copy link
Collaborator

@smortex smortex commented Jun 25, 2022

Performance of the Protobuf library is slightly better: comparing the
test suite "benchmark" (should query quickly, should be threadsafe)
before and after the change, we have the following figures:

Queries / second:

Protocol Before After Improvement
TLS 544.38 2957.54 543%
TCP 1076.96 3688.43 342%
UDP 1282.52 3644.92 284%

Inserts / second:

Protocol Before After Improvement
TLS 1452.51 5155.62 354%
TCP 2860.25 6709.74 234%
UDP 4834.24 8158.35 168%

Fixes #12

Performance of the Protobuf library is slightly better: comparing the
test suite "benchmark" (should query quickly, should be threadsafe)
before and after the change, we have the following figures:

Queries / second:

| Protocol | Before  |  After | Improvement |
|:---------|--------:|-------:|------------:|
| TLS      |  544.38 | 2957.54|        543% |
| TCP      | 1076.96 | 3688.43|        342% |
| UDP      | 1282.52 | 3644.92|        284% |

Inserts / second:

| Protocol | Before  |  After  | Improvement |
|:---------|--------:|--------:|------------:|
| TLS      | 1452.51 | 5155.62 |        354% |
| TCP      | 2860.25 | 6709.74 |        234% |
| UDP      | 4834.24 | 8158.35 |        168% |
@smortex smortex added the enhancement New feature or request label Jun 25, 2022
@jamtur01
Copy link
Member

@aphyr Any thoughts if you have 10 seconds? Just want to make sure nothing weird springs from this?

@aphyr
Copy link
Collaborator

aphyr commented Jun 25, 2022 via email

@jamtur01
Copy link
Member

Then I think this is an excellent update @smortex +1 from me too.

@jamtur01 jamtur01 merged commit ce2a46d into main Jun 25, 2022
@smortex
Copy link
Collaborator Author

smortex commented Jun 26, 2022

For the record, this was reverted in #42 because it cause some CI regression because of time resolution. The initial issue is open again so that we can still have this in mind. I'll mark both PR as skip-changelog because this code was never released.

@smortex smortex added skip-changelog Excluded from CHANGELOG and removed enhancement New feature or request labels Jun 26, 2022
@smortex smortex deleted the protobuf branch January 17, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Excluded from CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protobuf serialization in Ruby very expensive
3 participants