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

Small-size data serialization problem #31

Open
yunhua-deng opened this issue Jan 26, 2019 · 1 comment
Open

Small-size data serialization problem #31

yunhua-deng opened this issue Jan 26, 2019 · 1 comment

Comments

@yunhua-deng
Copy link

According to our experiments, if the size of the raw message is less than 200 bytes, cap'proto gets slower than protobuf. The reason could be the overhead taken by the malloc process invovled in the deserializing each message?

@yunhua-deng
Copy link
Author

yunhua-deng commented Jan 29, 2019

Actually, we are benchmarking the c-capnproto, and seeing that in deserilization there is some malloc overhead, https://github.com/opensourcerouting/c-capnproto/blob/master/tests/example-test.cpp#L98

For 4000000 messages with each of about 200 bytes in size, the serilization/deserilization times are as follows:

protobuf: 650/750ms
capnp: 280ms
c-capnp: 500/900ms

FYI: We have fired an issue in c++ capnproto
capnproto/capnproto#790 (comment)

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

No branches or pull requests

1 participant